69 lines · plain
1## This test checks that llvm-dwarfdump can dump debug_macro.dwo2## section containing DW_MACRO_*_strx 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_strx - lineno: 1 macro: DWARF_VERSION 512# CHECK-NEXT: DW_MACRO_undef_strx - 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 11 # DW_MACRO_define_strx24 .byte 1 # Line Number25 .byte 0 # Macro String Index26 .byte 12 # DW_MACRO_undef_strx27 .byte 4 # Line Number28 .byte 1 # Macro String Index29 .byte 4 # DW_MACRO_end_file30 .byte 0 # End Of Macro List Mark31 32 .section .debug_str_offsets.dwo,"e",@progbits33 .long .Lcu_str_off_end0-.Lcu_str_off_start0 # Unit length34 .short 5 # Version35 .short 0 # Padding36.Lcu_str_off_start0:37 .long .Linfo_string0-.debug_str.dwo38 .long .Linfo_string1-.debug_str.dwo39.Lcu_str_off_end0:40 41 .section .debug_str.dwo,"eMS",@progbits,142.Linfo_string0:43 .asciz "DWARF_VERSION 5"44.Linfo_string1:45 .asciz "DWARF_VERSION"46 47 .section .debug_info.dwo,"e",@progbits48 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit49.Ldebug_info_dwo_start0:50 .short 5 # DWARF version number51 .byte 5 # DWARF Unit Type52 .byte 8 # Address Size (in bytes)53 .long 0 # Offset Into Abbrev. Section54 .quad 153687577447980198055 .byte 1 # Abbrev [1] 0x14:0x1a DW_TAG_compile_unit56 .long .Lcu_macro_begin0-.debug_macro.dwo # DW_AT_macros57 .byte 0 # End Of Children Mark58.Ldebug_info_dwo_end0:59 60 .section .debug_abbrev.dwo,"e",@progbits61 .byte 1 # Abbreviation Code62 .byte 17 # DW_TAG_compile_unit63 .byte 0 # DW_CHILDREN_no64 .byte 121 # DW_AT_macros65 .byte 23 # DW_FORM_sec_offset66 .byte 0 # EOM(1)67 .byte 0 # EOM(2)68 .byte 0 # EOM(3)69