brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.3 KiB · 7ed77a1 Raw
60 lines · plain
1# This test checks the support for writing macro sections and their index (v5).2 3# RUN: llvm-mc -triple x86_64-unknown-linux --filetype=obj --split-dwarf-file=%t.dwo -dwarf-version=5 %s -o %t.o4# RUN: llvm-dwp %t.dwo -o %t.dwp 2>&15# RUN: llvm-dwarfdump -debug-macro -debug-cu-index %t.dwp | FileCheck -check-prefix=CHECK %s6# RUN: llvm-dwarfdump -debug-macro -debug-cu-index -manually-generate-unit-index %t.dwp | FileCheck -check-prefix=CHECK2 %s7 8# CHECK-DAG: .debug_macro.dwo contents:9# CHECK: macro header: version = 0x0005, flags = 0x00, format = DWARF3210# CHECK-NEXT: DW_MACRO_start_file - lineno: 0 filenum: 011# CHECK-NEXT: DW_MACRO_define_strx - lineno: 1 macro: x 512# CHECK-NEXT: DW_MACRO_end_file13 14# CHECK-DAG: .debug_cu_index contents:15# CHECK-NEXT: version = 5, units = 1, slots = 216# CHECK: Index Signature          INFO                                      ABBREV                   STR_OFFSETS              MACRO17# CHECK:     1 0x0000000000000000 [0x0000000000000000, 0x0000000000000019) [0x00000000, 0x00000008) [0x00000000, 0x0000000c) [0x00000000, 0x0000000b)18 19# CHECK2: Index Signature          INFO                                     ABBREV                   STR_OFFSETS              MACRO20# CHECK2:     1 0x0000000000000000 [0x0000000000000000, 0x0000000000000019) [0x00000000, 0x00000008) [0x00000000, 0x0000000c) [0x00000000, 0x0000000b)21 22    .section	.debug_info.dwo,"e",@progbits23    .long	.Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit24.Ldebug_info_dwo_start0:25    .short	5                               # DWARF version number26    .byte	5                               # DWARF Unit Type (DW_UT_split_compile)27    .byte	8                               # Address Size (in bytes)28    .long	0                               # Offset Into Abbrev. Section29    .quad	030    .byte	1                               # Abbrev [1] 0x14:0x5 DW_TAG_compile_unit31    .long	0                               # DW_AT_macros32.Ldebug_info_dwo_end0:33    .section	.debug_macro.dwo,"e",@progbits34    .short	5                               # Macro information version35    .byte	0                               # Flags: 32 bit36    .byte	3                               # DW_MACRO_start_file37    .byte	0                               # Line Number38    .byte	0                               # File Number39    .byte	11                              # DW_MACRO_define_strx40    .byte	1                               # Line Number41    .byte	0                               # Macro String42    .byte	4                               # DW_MACRO_end_file43    .byte	0                               # End Of Macro List Mark44    .section	.debug_abbrev.dwo,"e",@progbits45    .byte	1                               # Abbreviation Code46    .byte	17                              # DW_TAG_compile_unit47    .byte	0                               # DW_CHILDREN_no48    .byte	121                             # DW_AT_macros49    .byte	23                              # DW_FORM_sec_offset50    .byte	0                               # EOM(1)51    .byte	0                               # EOM(2)52    .byte	0                               # EOM(3)53    .section	.debug_str.dwo,"eMS",@progbits,154    .asciz	"x 5"                           # string offset=055    .section	.debug_str_offsets.dwo,"e",@progbits56    .long	8                            # Length of String Offsets Set57    .short	558    .short	059  .long	060