| 1 |
# RUN: yaml2obj %s -o %t.o |
| 2 |
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 0 %t.o | FileCheck %s --check-prefixes=COMMON,ALL |
| 3 |
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 1 %t.o | FileCheck %s --check-prefixes=COMMON,ONE |
| 4 |
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 2 %t.o | FileCheck %s --check-prefixes=COMMON,TWO |
| 5 |
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 3 %t.o | FileCheck %s --check-prefixes=COMMON,ALL |
| 6 |
|
| 7 |
# COMMON: .o: file format |
| 8 |
|
| 9 |
# ALL: by_hand |
| 10 |
# ALL: main |
| 11 |
# ALL: test |
| 12 |
# ALL: int |
| 13 |
|
| 14 |
# ONE-NOT: by_hand |
| 15 |
# ONE-NOT: main |
| 16 |
# ONE: test |
| 17 |
# ONE: int |
| 18 |
|
| 19 |
# TWO-NOT: by_hand |
| 20 |
# TWO: main |
| 21 |
# TWO: test |
| 22 |
# TWO: int |
| 23 |
|
| 24 |
--- !ELF |
| 25 |
FileHeader: |
| 26 |
Class: ELFCLASS64 |
| 27 |
Data: ELFDATA2LSB |
| 28 |
Type: ET_EXEC |
| 29 |
Machine: EM_X86_64 |
| 30 |
DWARF: |
| 31 |
debug_abbrev: |
| 32 |
- Table: |
| 33 |
- Tag: DW_TAG_compile_unit |
| 34 |
Children: DW_CHILDREN_yes |
| 35 |
Attributes: |
| 36 |
- Attribute: DW_AT_producer |
| 37 |
Form: DW_FORM_string |
| 38 |
- Tag: DW_TAG_subprogram |
| 39 |
Children: DW_CHILDREN_yes |
| 40 |
Attributes: |
| 41 |
- Attribute: DW_AT_name |
| 42 |
Form: DW_FORM_string |
| 43 |
- Tag: DW_TAG_namespace |
| 44 |
Children: DW_CHILDREN_yes |
| 45 |
Attributes: |
| 46 |
- Attribute: DW_AT_name |
| 47 |
Form: DW_FORM_string |
| 48 |
- Tag: DW_TAG_base_type |
| 49 |
Children: DW_CHILDREN_no |
| 50 |
Attributes: |
| 51 |
- Attribute: DW_AT_name |
| 52 |
Form: DW_FORM_string |
| 53 |
debug_info: |
| 54 |
- Version: 4 |
| 55 |
Entries: |
| 56 |
- AbbrCode: 1 |
| 57 |
Values: |
| 58 |
- CStr: by_hand |
| 59 |
- AbbrCode: 2 |
| 60 |
Values: |
| 61 |
- CStr: main |
| 62 |
- AbbrCode: 3 |
| 63 |
Values: |
| 64 |
- CStr: test |
| 65 |
- AbbrCode: 4 |
| 66 |
Values: |
| 67 |
- CStr: int |