brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.8 KiB · a05b6f0 Raw
122 lines · yaml
1# RUN: yaml2obj %s | not llvm-dwarfdump --error-display=details --verify - | FileCheck %s --implicit-check-not=error:2 3# CHECK:      error: DIE has DW_AT_decl_file with an invalid file index 2 (valid values are [1-1]){{[[:space:]]}}4# CHECK-NEXT: 0x0000001e: 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_data1] (0x02)9# CHECK-NEXT:               DW_AT_call_line   [DW_FORM_data1] (5){{[[:space:]]}}10# CHECK-NEXT: error: DIE has DW_AT_call_file with an invalid file index 3 (valid values are [1-1]){{[[:space:]]}}11# CHECK-NEXT: 0x00000035: DW_TAG_inlined_subroutine12# CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x00000012] = "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_data1] (0x03)16# CHECK-NEXT:               DW_AT_call_line   [DW_FORM_data1] (10){{[[:space:]]}}17 18# CHECK:      Errors detected.19 20--- !ELF21FileHeader:22  Class:   ELFCLASS6423  Data:    ELFDATA2LSB24  Type:    ET_EXEC25  Machine: EM_X86_6426DWARF:27  debug_str:28    - ''29    - '/tmp/main.c'30    - main31    - inline132  debug_abbrev:33    - Table:34        - Code:            0x000000000000000135          Tag:             DW_TAG_compile_unit36          Children:        DW_CHILDREN_yes37          Attributes:38            - Attribute:       DW_AT_name39              Form:            DW_FORM_strp40            - Attribute:       DW_AT_language41              Form:            DW_FORM_data242            - Attribute:       DW_AT_low_pc43              Form:            DW_FORM_addr44            - Attribute:       DW_AT_stmt_list45              Form:            DW_FORM_sec_offset46        - Code:            0x000000000000000247          Tag:             DW_TAG_subprogram48          Children:        DW_CHILDREN_yes49          Attributes:50            - Attribute:       DW_AT_name51              Form:            DW_FORM_strp52            - Attribute:       DW_AT_low_pc53              Form:            DW_FORM_addr54            - Attribute:       DW_AT_high_pc55              Form:            DW_FORM_addr56            - Attribute:       DW_AT_decl_file57              Form:            DW_FORM_data158            - Attribute:       DW_AT_call_line59              Form:            DW_FORM_data160        - Code:            0x000000000000000361          Tag:             DW_TAG_inlined_subroutine62          Children:        DW_CHILDREN_no63          Attributes:64            - Attribute:       DW_AT_name65              Form:            DW_FORM_strp66            - Attribute:       DW_AT_low_pc67              Form:            DW_FORM_addr68            - Attribute:       DW_AT_high_pc69              Form:            DW_FORM_data470            - Attribute:       DW_AT_call_file71              Form:            DW_FORM_data172            - Attribute:       DW_AT_call_line73              Form:            DW_FORM_data174  debug_info:75    - Length:          0x000000000000004676      Version:         477      AbbrOffset:      0x000000000000000078      AddrSize:        879      Entries:80        - AbbrCode:        0x0000000181          Values:82            - Value:           0x000000000000000183            - Value:           0x000000000000000284            - Value:           0x000000000000000085            - Value:           0x000000000000000086        - AbbrCode:        0x0000000287          Values:88            - Value:           0x000000000000000D89            - Value:           0x000000000000100090            - Value:           0x000000000000200091            - Value:           0x000000000000000292            - Value:           0x000000000000000593        - AbbrCode:        0x0000000394          Values:95            - Value:           0x000000000000001296            - Value:           0x000000000000110097            - Value:           0x000000000000010098            - Value:           0x000000000000000399            - Value:           0x000000000000000A100        - AbbrCode:        0x00000000101          Values:          []102        - AbbrCode:        0x00000000103          Values:          []104  debug_line:105    - Length:          40106      Version:         2107      PrologueLength:  34108      MinInstLength:   1109      DefaultIsStmt:   1110      LineBase:        251111      LineRange:       14112      OpcodeBase:      13113      StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]114      IncludeDirs:115        - '/tmp'116      Files:117        - Name:            main.c118          DirIdx:          1119          ModTime:         0120          Length:          0121...122