37 lines · plain
1## This test checks that llvm-dwarfdump can dump debug_macro.dwo2## section containing DW_MACRO_*_strp forms present in a dwo 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.dwo 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_undef_strp - lineno: 4 macro: DWARF_VERSION13# CHECK-NEXT:DW_MACRO_end_file14 15 .section .debug_macro.dwo,"e",@progbits16.Lcu_macro_begin0:17 .short 5 # Macro information version18 .byte 2 # Flags: 32 bit, debug_line_offset present19 .long 0 # debug_line_offset20 .byte 3 # DW_MACRO_start_file21 .byte 0 # Line Number22 .byte 0 # File Number23 .byte 5 # DW_MACRO_define_strp24 .byte 1 # Line Number25 .long .Linfo_string0-.debug_str.dwo # Macro String26 .byte 6 # DW_MACRO_undef_strp27 .byte 4 # Line Number28 .long .Linfo_string1-.debug_str.dwo # Macro String29 .byte 4 # DW_MACRO_end_file30 .byte 0 # End Of Macro List Mark31 32 .section .debug_str.dwo,"eMS",@progbits,133.Linfo_string0:34 .asciz "DWARF_VERSION 5"35.Linfo_string1:36 .asciz "DWARF_VERSION"37