File: dwarfdump-type-units.test

package info (click to toggle)
llvm-toolchain-3.5 1%3A3.5-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 282,028 kB
  • ctags: 310,872
  • sloc: cpp: 1,883,926; ansic: 310,731; objc: 86,612; python: 79,565; asm: 65,844; sh: 9,829; makefile: 6,057; perl: 5,589; ml: 5,254; pascal: 3,285; lisp: 1,640; xml: 686; cs: 239; csh: 117
file content (32 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download | duplicates (8)
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
28
29
30
31
32
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 > %t
RUN: cat %t | FileCheck -check-prefix=FOO %s
RUN: cat %t | FileCheck -check-prefix=BAR %s
RUN: llvm-dwarfdump -debug-dump=types %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=TYPES %s

FOO: debug_info contents:
FOO: DW_TAG_variable
FOO-NEXT: DW_AT_name {{.*}}"f"
FOO: DW_AT_type [DW_FORM_ref_sig8] ([[FOO_SIG:0x[0-9a-f]*]])

FOO: debug_types contents:
FOO: 0x00000000: Type Unit: {{.*}} type_signature = [[FOO_SIG]] type_offset = 0x[[FOO_OFF:[0-9a-f]*]] (next unit at
FOO: DW_TAG_type_unit
FOO-NOT: NULL
FOO: 0x0000[[FOO_OFF]]: DW_TAG_structure_type
FOO-NEXT: DW_AT_name {{.*}}"foo"

BAR: debug_info contents:
BAR: DW_TAG_variable
BAR: DW_TAG_variable
BAR-NEXT: DW_AT_name {{.*}}"b"
BAR: DW_AT_type [DW_FORM_ref_sig8] ([[BAR_SIG:0x[0-9a-f]*]])

BAR: debug_types contents:
BAR: 0x00000000: Type Unit: {{.*}} type_signature = [[BAR_SIG]] type_offset = 0x[[BAR_OFF:[0-9a-f]*]] (next unit at
BAR: DW_TAG_type_unit
BAR-NOT: NULL
BAR: 0x0000[[BAR_OFF]]: DW_TAG_structure_type
BAR-NEXT: DW_AT_name {{.*}}"bar"

TYPES-NOT: debug_info contents:
TYPES: debug_types contents: