File: breakpad-symbols.test

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (27 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Test that we can attach breakpad symbols to the "placeholder" modules created
# for minidump files.
#
# The minidump input for this test taken from packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new

# RUN: yaml2obj %S/Inputs/linux-x86_64.yaml -o %t
# RUN: %lldb -c %t \
# RUN:   -o "target symbols add -s /tmp/test/linux-x86_64 %S/Inputs/linux-x86_64.syms" \
# RUN:   -s %s -o exit | FileCheck %s

image list
# CHECK-LABEL: image list
# CHECK: E35C283B-C327-C287-62DB-788BF5A4078B-E2351448 0x0000000000400000 /tmp/test/linux-x86_64

image dump symtab /tmp/test/linux-x86_64
# CHECK-LABEL: image dump symtab /tmp/test/linux-x86_64
# CHECK: Symtab, file = /tmp/test/linux-x86_64, num_symbols = 2:
# CHECK: [    0]      0   X Code            0x00000000004003d0 0x00000000004003d0 0x0000000000000020 0x00000000 crash()
# CHECK: [    1]      0   X Code            0x00000000004003f0 0x00000000004003f0 0x0000000000000c10 0x00000000 _start

image lookup -a 0x4003f3
# CHECK-LABEL: image lookup -a 0x4003f3
# CHECK: Summary: linux-x86_64`_start + 3

image dump objfile /tmp/test/linux-x86_64
# CHECK-LABEL: image dump objfile /tmp/test/linux-x86_64
# CHECK: Placeholder object file for /tmp/test/linux-x86_64 loaded at [0x400000-0x401000)