1e7102eedSSourabh Singh Tomar## This test checks that llvm-dwarfdump can dump debug_macro.dwo 2e7102eedSSourabh Singh Tomar## section containing DW_MACRO_*_strp forms present in a dwo object. 3e7102eedSSourabh Singh Tomar 4e7102eedSSourabh Singh Tomar# RUN: llvm-mc -triple x86_64-unknown-linux -filetype=obj %s -o -| \ 5e7102eedSSourabh Singh Tomar# RUN: llvm-dwarfdump -debug-macro - | FileCheck -strict-whitespace -match-full-lines %s 6e7102eedSSourabh Singh Tomar 7e7102eedSSourabh Singh Tomar# CHECK:.debug_macro.dwo contents: 8e7102eedSSourabh Singh Tomar# CHECK-NEXT:0x00000000: 9*ccbd7e8dSIgor Kudrin# CHECK-NEXT:macro header: version = 0x0005, flags = 0x02, format = DWARF32, debug_line_offset = 0x00000000 10e7102eedSSourabh Singh Tomar# CHECK-NEXT:DW_MACRO_start_file - lineno: 0 filenum: 0 11e7102eedSSourabh Singh Tomar# CHECK-NEXT: DW_MACRO_define_strp - lineno: 1 macro: DWARF_VERSION 5 12e7102eedSSourabh Singh Tomar# CHECK-NEXT: DW_MACRO_undef_strp - lineno: 4 macro: DWARF_VERSION 13e7102eedSSourabh Singh Tomar# CHECK-NEXT:DW_MACRO_end_file 14e7102eedSSourabh Singh Tomar 15e7102eedSSourabh Singh Tomar .section .debug_macro.dwo,"e",@progbits 16e7102eedSSourabh Singh Tomar.Lcu_macro_begin0: 17e7102eedSSourabh Singh Tomar .short 5 # Macro information version 18e7102eedSSourabh Singh Tomar .byte 2 # Flags: 32 bit, debug_line_offset present 19e7102eedSSourabh Singh Tomar .long 0 # debug_line_offset 20e7102eedSSourabh Singh Tomar .byte 3 # DW_MACRO_start_file 21e7102eedSSourabh Singh Tomar .byte 0 # Line Number 22e7102eedSSourabh Singh Tomar .byte 0 # File Number 23e7102eedSSourabh Singh Tomar .byte 5 # DW_MACRO_define_strp 24e7102eedSSourabh Singh Tomar .byte 1 # Line Number 25e7102eedSSourabh Singh Tomar .long .Linfo_string0-.debug_str.dwo # Macro String 26e7102eedSSourabh Singh Tomar .byte 6 # DW_MACRO_undef_strp 27e7102eedSSourabh Singh Tomar .byte 4 # Line Number 28e7102eedSSourabh Singh Tomar .long .Linfo_string1-.debug_str.dwo # Macro String 29e7102eedSSourabh Singh Tomar .byte 4 # DW_MACRO_end_file 30e7102eedSSourabh Singh Tomar .byte 0 # End Of Macro List Mark 31e7102eedSSourabh Singh Tomar 32e7102eedSSourabh Singh Tomar .section .debug_str.dwo,"eMS",@progbits,1 33e7102eedSSourabh Singh Tomar.Linfo_string0: 34e7102eedSSourabh Singh Tomar .asciz "DWARF_VERSION 5" 35e7102eedSSourabh Singh Tomar.Linfo_string1: 36e7102eedSSourabh Singh Tomar .asciz "DWARF_VERSION" 37