brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 4762dd5 Raw
33 lines · plain
1## This test checks that llvm-dwarfdump produces error message2## while parsing an *_strx form, if units contribution to3## debug_macro[.dwo] section is missing.4 5# RUN: llvm-mc -triple x86_64-unknown-linux -filetype=obj %s -o -| \6# RUN:   not llvm-dwarfdump -debug-macro - /dev/null 2>&1 | FileCheck %s7 8# CHECK: error: Macro contribution of the unit not found9       .section        .debug_abbrev,"",@progbits10       .byte   1                       # Abbreviation Code11       .byte   17                      # DW_TAG_compile_unit12       .byte   0                       # DW_CHILDREN_no13       .byte   0                       # EOM(1)14       .byte   0                       # EOM(2)15       .byte   0                       # EOM(3)16 17       .section        .debug_info,"",@progbits18.Lcu_begin0:19       .long   .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit20.Ldebug_info_start0:21       .short  5                      # DWARF version number22       .byte   1                       # DWARF Unit Type23       .byte   8                       # Address Size (in bytes)24       .long   .debug_abbrev           # Offset Into Abbrev. Section25       .byte   1                       # Abbrev [1] 0xc:0x12 DW_TAG_compile_unit26.Ldebug_info_end0:27 28       .section        .debug_macro,"",@progbits29.Lcu_macro_begin0:30       .short  5                      # Macro information version31       .byte   0                       # Flags: 32 bit32       .byte   11                      # DW_MACRO_define_strx33