brintos

brintos / llvm-project-archived public Read only

0
0
Text · 8.3 KiB · 4afb775 Raw
171 lines · yaml
1# RUN: yaml2obj %s | not llvm-dwarfdump --verify - | FileCheck %s --implicit-check-not=error:2 3# CHECK:      error: DIE has DW_AT_decl_file with invalid encoding{{[[:space:]]}}4# CHECK-NEXT: 0x0000001a: DW_TAG_subprogram5# CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000000d] = "main")6# CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000001000)7# CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000002000)8# CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_strp] ( .debug_str[0x00000012] = "")9# CHECK-NEXT:               DW_AT_call_line   [DW_FORM_data1] (5){{[[:space:]]}}10# CHECK-NEXT: error: DIE has DW_AT_call_file with invalid encoding{{[[:space:]]}}11# CHECK-NEXT: 0x00000034: DW_TAG_inlined_subroutine12# CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x00000013] = "inline1")13# CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000001100)14# CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_data4] (0x00000100)15# CHECK-NEXT:               DW_AT_call_file   [DW_FORM_strp] ( .debug_str[0x00000012] = "")16# CHECK-NEXT:               DW_AT_call_line   [DW_FORM_data1] (10){{[[:space:]]}}17# CHECK-NEXT: error: DIE has DW_AT_decl_file with invalid encoding{{[[:space:]]}}18# CHECK-NEXT: 0x0000004a: DW_TAG_subprogram19# CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")20# CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000002000)21# CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000003000)22# CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_sdata] (2)23# CHECK-NEXT:               DW_AT_decl_line   [DW_FORM_sdata] (3)24# CHECK-NEXT:               DW_AT_call_file   [DW_FORM_sdata] (4)25# CHECK-NEXT:               DW_AT_call_line   [DW_FORM_sdata] (5){{[[:space:]]}}26# CHECK-NEXT: error: DIE has DW_AT_decl_line with invalid encoding{{[[:space:]]}}27# CHECK-NEXT: 0x0000004a: DW_TAG_subprogram28# CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")29# CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000002000)30# CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000003000)31# CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_sdata] (2)32# CHECK-NEXT:               DW_AT_decl_line   [DW_FORM_sdata] (3)33# CHECK-NEXT:               DW_AT_call_file   [DW_FORM_sdata] (4)34# CHECK-NEXT:               DW_AT_call_line   [DW_FORM_sdata] (5){{[[:space:]]}}35# CHECK-NEXT: error: DIE has DW_AT_call_file with invalid encoding{{[[:space:]]}}36# CHECK-NEXT: 0x0000004a: DW_TAG_subprogram37# CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")38# CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000002000)39# CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000003000)40# CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_sdata] (2)41# CHECK-NEXT:               DW_AT_decl_line   [DW_FORM_sdata] (3)42# CHECK-NEXT:               DW_AT_call_file   [DW_FORM_sdata] (4)43# CHECK-NEXT:               DW_AT_call_line   [DW_FORM_sdata] (5){{[[:space:]]}}44# CHECK-NEXT: error: DIE has DW_AT_call_line with invalid encoding{{[[:space:]]}}45# CHECK-NEXT: 0x0000004a: DW_TAG_subprogram46# CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")47# CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000002000)48# CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000003000)49# CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_sdata] (2)50# CHECK-NEXT:               DW_AT_decl_line   [DW_FORM_sdata] (3)51# CHECK-NEXT:               DW_AT_call_file   [DW_FORM_sdata] (4)52# CHECK-NEXT:               DW_AT_call_line   [DW_FORM_sdata] (5){{[[:space:]]}}53# CHECK-NEXT: Verifying dwo Units...54# CHECK-NEXT: Verifying .debug_line...55# CHECK-NEXT: Verifying .debug_str_offsets...56# CHECK-NEXT: error: Aggregated error counts:57# CHECK-NEXT: error: Invalid encoding in DW_AT_decl_file occurred 4 time(s).58# CHECK-NEXT: error: Invalid file index in DW_AT_call_line occurred 1 time(s).59# CHECK-NEXT: error: Invalid file index in DW_AT_decl_line occurred 1 time(s).60--- !ELF61FileHeader:62  Class:   ELFCLASS6463  Data:    ELFDATA2LSB64  Type:    ET_EXEC65  Machine: EM_X86_6466DWARF:67  debug_str:68    - ''69    - '/tmp/main.c'70    - main71    - ''72    - inline173    - foo74  debug_abbrev:75    - Table:76        - Code:            0x000000000000000177          Tag:             DW_TAG_compile_unit78          Children:        DW_CHILDREN_yes79          Attributes:80            - Attribute:       DW_AT_name81              Form:            DW_FORM_strp82            - Attribute:       DW_AT_language83              Form:            DW_FORM_data284            - Attribute:       DW_AT_low_pc85              Form:            DW_FORM_addr86        - Code:            0x000000000000000287          Tag:             DW_TAG_subprogram88          Children:        DW_CHILDREN_yes89          Attributes:90            - Attribute:       DW_AT_name91              Form:            DW_FORM_strp92            - Attribute:       DW_AT_low_pc93              Form:            DW_FORM_addr94            - Attribute:       DW_AT_high_pc95              Form:            DW_FORM_addr96            - Attribute:       DW_AT_decl_file97              Form:            DW_FORM_strp98            - Attribute:       DW_AT_call_line99              Form:            DW_FORM_data1100        - Code:            0x0000000000000003101          Tag:             DW_TAG_inlined_subroutine102          Children:        DW_CHILDREN_no103          Attributes:104            - Attribute:       DW_AT_name105              Form:            DW_FORM_strp106            - Attribute:       DW_AT_low_pc107              Form:            DW_FORM_addr108            - Attribute:       DW_AT_high_pc109              Form:            DW_FORM_data4110            - Attribute:       DW_AT_call_file111              Form:            DW_FORM_strp112            - Attribute:       DW_AT_call_line113              Form:            DW_FORM_data1114        - Code:            0x0000000000000004115          Tag:             DW_TAG_subprogram116          Children:        DW_CHILDREN_no117          Attributes:118            - Attribute:       DW_AT_name119              Form:            DW_FORM_strp120            - Attribute:       DW_AT_low_pc121              Form:            DW_FORM_addr122            - Attribute:       DW_AT_high_pc123              Form:            DW_FORM_addr124            - Attribute:       DW_AT_decl_file125              Form:            DW_FORM_sdata126            - Attribute:       DW_AT_decl_line127              Form:            DW_FORM_sdata128            - Attribute:       DW_AT_call_file129              Form:            DW_FORM_sdata130            - Attribute:       DW_AT_call_line131              Form:            DW_FORM_sdata132  debug_info:133    - Length:          0x0000000000000061134      Version:         4135      AbbrOffset:      0x0000000000000000136      AddrSize:        8137      Entries:138        - AbbrCode:        0x00000001139          Values:140            - Value:           0x0000000000000001141            - Value:           0x0000000000000002142            - Value:           0x0000000000000000143        - AbbrCode:        0x00000002144          Values:145            - Value:           0x000000000000000D146            - Value:           0x0000000000001000147            - Value:           0x0000000000002000148            - Value:           0x0000000000000012149            - Value:           0x0000000000000005150        - AbbrCode:        0x00000003151          Values:152            - Value:           0x0000000000000013153            - Value:           0x0000000000001100154            - Value:           0x0000000000000100155            - Value:           0x0000000000000012156            - Value:           0x000000000000000A157        - AbbrCode:        0x00000004158          Values:159            - Value:           0x000000000000001B160            - Value:           0x0000000000002000161            - Value:           0x0000000000003000162            - Value:           0x0000000000000002163            - Value:           0x0000000000000003164            - Value:           0x0000000000000004165            - Value:           0x0000000000000005166        - AbbrCode:        0x00000000167          Values:          []168        - AbbrCode:        0x00000000169          Values:          []170...171