brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · d14b5b1 Raw
68 lines · plain
1# RUN: yaml2obj %s -o %t.o2# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 0 %t.o | FileCheck %s --check-prefixes=COMMON,ALL3# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 1 %t.o | FileCheck %s --check-prefixes=COMMON,ONE4# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 2 %t.o | FileCheck %s --check-prefixes=COMMON,TWO5# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 3 %t.o | FileCheck %s --check-prefixes=COMMON,ALL6 7# COMMON: .o: file format8 9# ALL: by_hand10# ALL: main11# ALL: test12# ALL: int13 14# ONE-NOT: by_hand15# ONE-NOT: main16# ONE: test17# ONE: int18 19# TWO-NOT: by_hand20# TWO: main21# TWO: test22# TWO: int23 24--- !ELF25FileHeader:26  Class:   ELFCLASS6427  Data:    ELFDATA2LSB28  Type:    ET_EXEC29  Machine: EM_X86_6430DWARF:31  debug_abbrev:32    - Table:33      - Tag:      DW_TAG_compile_unit34        Children: DW_CHILDREN_yes35        Attributes:36          - Attribute: DW_AT_producer37            Form:      DW_FORM_string38      - Tag:      DW_TAG_subprogram39        Children: DW_CHILDREN_yes40        Attributes:41          - Attribute: DW_AT_name42            Form:      DW_FORM_string43      - Tag:      DW_TAG_namespace44        Children: DW_CHILDREN_yes45        Attributes:46          - Attribute: DW_AT_name47            Form:      DW_FORM_string48      - Tag:      DW_TAG_base_type49        Children: DW_CHILDREN_no50        Attributes:51          - Attribute: DW_AT_name52            Form:      DW_FORM_string53  debug_info:54    - Version: 455      Entries:56        - AbbrCode: 157          Values:58            - CStr: by_hand59        - AbbrCode: 260          Values:61            - CStr: main62        - AbbrCode: 363          Values:64            - CStr: test65        - AbbrCode: 466          Values:67            - CStr: int68