63 lines · plain
1## This test checks the warning message displayed if input file2## contains .debug_pubnames section which is incompatible with3## requested accelerator table.4 5# RUN: yaml2obj %s -o %t.o6 7# RUN: llvm-dwarfutil --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN18 9# RUN: llvm-dwarfutil --build-accelerator=DWARF --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN210 11# RUN: llvm-dwarfutil --build-accelerator=DWARF --no-garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN212 13# WARN1: [[FILE]]: warning: '.debug_pubnames' will be deleted as no accelerator tables are requested14 15# WARN2: [[FILE]]: warning: '.debug_pubnames' will be replaced with requested .debug_names table16 17--- !ELF18FileHeader:19 Class: ELFCLASS6420 Data: ELFDATA2LSB21 Type: ET_REL22 Machine: EM_X86_6423Sections:24 - Name: .text25 Type: SHT_PROGBITS26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]27 Address: 0x100028 AddressAlign: 0x000000000000001029 Content: "FFFFFFFF"30 - Name: .debug_pubnames31 Type: SHT_PROGBITS32 Flags: [ ]33 Content: "0000"34DWARF:35 debug_abbrev:36 - Table:37 - Tag: DW_TAG_compile_unit38 Children: DW_CHILDREN_yes39 Attributes:40 - Attribute: DW_AT_producer41 Form: DW_FORM_string42 - Attribute: DW_AT_language43 Form: DW_FORM_data244 - Attribute: DW_AT_name45 Form: DW_FORM_string46 - Attribute: DW_AT_low_pc47 Form: DW_FORM_addr48 - Attribute: DW_AT_high_pc49 Form: DW_FORM_data850 debug_info:51 - Version: 552 UnitType: DW_UT_compile53 Entries:54 - AbbrCode: 155 Values:56 - CStr: by_hand57 - Value: 0x0458 - CStr: CU159 - Value: 0x100060 - Value: 0x461 - AbbrCode: 062...63