llvm.org GIT mirror llvm / 26efdc5
llvm-dwarfdump: support for emitting only the debug_types section using -debug-dump git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195063 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 6 years ago
2 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 > %t
11 RUN: cat %t | FileCheck -check-prefix=FOO %s
22 RUN: cat %t | FileCheck -check-prefix=BAR %s
3 RUN: llvm-dwarfdump -debug-dump=types %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=TYPES %s
34
45 FOO: debug_info contents:
56 FOO: DW_TAG_variable
2526 BAR-NOT: NULL
2627 BAR: 0x0000[[BAR_OFF]]: DW_TAG_structure_type
2728 BAR-NEXT: DW_AT_name {{.*}}"bar"
29
30 TYPES-NOT: debug_info contents:
31 TYPES: debug_types contents:
6161 clEnumValN(DIDT_Aranges, "aranges", ".debug_aranges"),
6262 clEnumValN(DIDT_Info, "info", ".debug_info"),
6363 clEnumValN(DIDT_InfoDwo, "info.dwo", ".debug_info.dwo"),
64 clEnumValN(DIDT_Types, "types", ".debug_types"),
6465 clEnumValN(DIDT_Line, "line", ".debug_line"),
6566 clEnumValN(DIDT_Loc, "loc", ".debug_loc"),
6667 clEnumValN(DIDT_Frames, "frames", ".debug_frame"),