annotate lldb/test/Shell/SymbolFile/Breakpad/line-table.test @ 227:21e6aa2e49ef

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 19 Jul 2021 06:57:16 +0900
parents 2e18cbf3894f
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1 # RUN: yaml2obj %S/Inputs/basic-elf.yaml -o %T/line-table.out
150
anatofuz
parents:
diff changeset
2 # RUN: %lldb %T/line-table.out -o "target symbols add -s line-table.out %S/Inputs/line-table.syms" \
anatofuz
parents:
diff changeset
3 # RUN: -s %s -o exit | FileCheck %s
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 # We create a compile unit for each function. The compile unit name is the first
anatofuz
parents:
diff changeset
6 # line table entry in that function.
anatofuz
parents:
diff changeset
7 # This symbol file contains a single function in the "compile unit" a.c. This
anatofuz
parents:
diff changeset
8 # function has two line table sequences.
anatofuz
parents:
diff changeset
9 image dump line-table a.c
anatofuz
parents:
diff changeset
10 # CHECK-LABEL: Line table for /tmp/a.c
anatofuz
parents:
diff changeset
11 # CHECK-NEXT: 0x00000000004000b0: /tmp/a.c:1
anatofuz
parents:
diff changeset
12 # CHECK-NEXT: 0x00000000004000b1: /tmp/a.c:2
anatofuz
parents:
diff changeset
13 # CHECK-NEXT: 0x00000000004000b2: /tmp/c.c:2
anatofuz
parents:
diff changeset
14 # CHECK-NEXT: 0x00000000004000b3:
anatofuz
parents:
diff changeset
15 # CHECK-EMPTY:
anatofuz
parents:
diff changeset
16 # CHECK-NEXT: 0x00000000004000b4: /tmp/c.c:3
anatofuz
parents:
diff changeset
17 # CHECK-NEXT: 0x00000000004000b5:
anatofuz
parents:
diff changeset
18 # CHECK-EMPTY:
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 # Single compile unit for c.c with a single line sequence.
anatofuz
parents:
diff changeset
21 image dump line-table c.c
anatofuz
parents:
diff changeset
22 # CHECK-LABEL: Line table for /tmp/c.c
anatofuz
parents:
diff changeset
23 # CHECK-NEXT: 0x00000000004000c0: /tmp/c.c:1
anatofuz
parents:
diff changeset
24 # CHECK-NEXT: 0x00000000004000c2: /tmp/a.c:2
anatofuz
parents:
diff changeset
25 # CHECK-NEXT: 0x00000000004000c4:
anatofuz
parents:
diff changeset
26 # CHECK-EMPTY:
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 # There are two compile units called "d.c". Hence, two line tables.
anatofuz
parents:
diff changeset
29 image dump line-table d.c
anatofuz
parents:
diff changeset
30 # CHECK-LABEL: Line table for /tmp/d.c
anatofuz
parents:
diff changeset
31 # CHECK-NEXT: 0x00000000004000d0: /tmp/d.c:1
anatofuz
parents:
diff changeset
32 # CHECK-NEXT: 0x00000000004000d2:
anatofuz
parents:
diff changeset
33 # CHECK-EMPTY:
anatofuz
parents:
diff changeset
34 # CHECK-LABEL: Line table for /tmp/d.c
anatofuz
parents:
diff changeset
35 # CHECK-NEXT: 0x00000000004000e0: /tmp/d.c:2
anatofuz
parents:
diff changeset
36 # CHECK-NEXT: 0x00000000004000e2:
anatofuz
parents:
diff changeset
37 # CHECK-EMPTY:
anatofuz
parents:
diff changeset
38
anatofuz
parents:
diff changeset
39 image lookup -a 0x4000b2 -v
anatofuz
parents:
diff changeset
40 # CHECK-LABEL: image lookup -a 0x4000b2 -v
anatofuz
parents:
diff changeset
41 # CHECK: Summary: line-table.out`func + 2
anatofuz
parents:
diff changeset
42
anatofuz
parents:
diff changeset
43 breakpoint set -f c.c -l 2
anatofuz
parents:
diff changeset
44 # CHECK-LABEL: breakpoint set -f c.c -l 2
anatofuz
parents:
diff changeset
45 # CHECK: Breakpoint 1: where = line-table.out`func + 2, address = 0x00000000004000b2