brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · c981097 Raw
48 lines · plain
1## This test checks that llvm-dwarfdump can dump both debug_macro and debug_macinfo2## sections present in the same object.3 4# RUN: llvm-mc -triple x86_64-unknown-linux -filetype=obj %s -o -| \5# RUN:   llvm-dwarfdump -debug-macro - | FileCheck -strict-whitespace -match-full-lines %s6 7#      CHECK:.debug_macro contents:8# CHECK-NEXT:0x00000000:9# CHECK-NEXT:macro header: version = 0x0005, flags = 0x02, format = DWARF32, debug_line_offset = 0x0000000010# CHECK-NEXT:DW_MACRO_start_file - lineno: 0 filenum: 011# CHECK-NEXT:  DW_MACRO_define_strp - lineno: 1 macro: DWARF_VERSION 512# CHECK-NEXT:DW_MACRO_end_file13 14#      CHECK:.debug_macinfo contents:15# CHECK-NEXT:0x00000000:16# CHECK-NEXT:DW_MACINFO_start_file - lineno: 0 filenum: 217# CHECK-NEXT:  DW_MACINFO_define - lineno: 6 macro: DWARF_VERSION 418# CHECK-NEXT:DW_MACINFO_end_file19 20	.section	.debug_macro,"",@progbits21.Lcu_macro_begin0:22	.short	5                      # Macro information version23	.byte	2                       # Flags: 32 bit, debug_line_offset present24	.long	0                       # debug_line_offset25	.byte	3                       # DW_MACRO_start_file26	.byte	0                       # Line Number27	.byte	0                       # File Number28	.byte	5                       # DW_MACRO_define_strp29	.byte	1                       # Line Number30	.long	.Linfo_string0          # Macro String31	.byte	4                       # DW_MACRO_end_file32	.byte	0                       # End Of Macro List Mark33 34	.section	.debug_macinfo,"",@progbits35.Lcu_macro_begin1:36	.byte	3                       # DW_MACINFO_start_file37	.byte	0                       # Line Number38	.byte	2                       # File Number39	.byte	1                       # DW_MACINFO_define40	.byte	6                       # Line Number41	.asciz	"DWARF_VERSION 4"      # Macro String42	.byte	4                       # DW_MACINFO_end_file43	.byte	0                       # End Of Macro List Mark44 45	.section	.debug_str,"MS",@progbits,146.Linfo_string0:47	.asciz	"DWARF_VERSION 5"48