| 1 |
# RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s |
| 2 |
|
| 3 |
# CHECK: 0x0000001e: DW_TAG_subprogram |
| 4 |
# CHECK-NEXT: DW_AT_name ("main") |
| 5 |
# CHECK-NEXT: DW_AT_low_pc (0x0000000000001000) |
| 6 |
# CHECK-NEXT: DW_AT_high_pc (0x0000000000002000) |
| 7 |
# CHECK-NEXT: DW_AT_decl_line (5) |
| 8 |
# CHECK-NEXT: DW_AT_decl_column (2) |
| 9 |
# CHECK: 0x00000035: DW_TAG_inlined_subroutine |
| 10 |
# CHECK-NEXT: DW_AT_name ("inline1") |
| 11 |
# CHECK-NEXT: DW_AT_low_pc (0x0000000000001100) |
| 12 |
# CHECK-NEXT: DW_AT_high_pc (0x0000000000001200) |
| 13 |
# CHECK-NEXT: DW_AT_call_line (10) |
| 14 |
# CHECK-NEXT: DW_AT_call_column (6) |
| 15 |
|
| 16 |
--- !ELF |
| 17 |
FileHeader: |
| 18 |
Class: ELFCLASS64 |
| 19 |
Data: ELFDATA2LSB |
| 20 |
Type: ET_EXEC |
| 21 |
Machine: EM_X86_64 |
| 22 |
DWARF: |
| 23 |
debug_str: |
| 24 |
- '' |
| 25 |
- '/tmp/main.c' |
| 26 |
- main |
| 27 |
- inline1 |
| 28 |
debug_abbrev: |
| 29 |
- Table: |
| 30 |
- Code: 0x0000000000000001 |
| 31 |
Tag: DW_TAG_compile_unit |
| 32 |
Children: DW_CHILDREN_yes |
| 33 |
Attributes: |
| 34 |
- Attribute: DW_AT_name |
| 35 |
Form: DW_FORM_strp |
| 36 |
- Attribute: DW_AT_language |
| 37 |
Form: DW_FORM_data2 |
| 38 |
- Attribute: DW_AT_low_pc |
| 39 |
Form: DW_FORM_addr |
| 40 |
- Attribute: DW_AT_stmt_list |
| 41 |
Form: DW_FORM_sec_offset |
| 42 |
- Code: 0x0000000000000002 |
| 43 |
Tag: DW_TAG_subprogram |
| 44 |
Children: DW_CHILDREN_yes |
| 45 |
Attributes: |
| 46 |
- Attribute: DW_AT_name |
| 47 |
Form: DW_FORM_strp |
| 48 |
- Attribute: DW_AT_low_pc |
| 49 |
Form: DW_FORM_addr |
| 50 |
- Attribute: DW_AT_high_pc |
| 51 |
Form: DW_FORM_addr |
| 52 |
- Attribute: DW_AT_decl_line |
| 53 |
Form: DW_FORM_data1 |
| 54 |
- Attribute: DW_AT_decl_column |
| 55 |
Form: DW_FORM_data1 |
| 56 |
- Code: 0x0000000000000003 |
| 57 |
Tag: DW_TAG_inlined_subroutine |
| 58 |
Children: DW_CHILDREN_no |
| 59 |
Attributes: |
| 60 |
- Attribute: DW_AT_name |
| 61 |
Form: DW_FORM_strp |
| 62 |
- Attribute: DW_AT_low_pc |
| 63 |
Form: DW_FORM_addr |
| 64 |
- Attribute: DW_AT_high_pc |
| 65 |
Form: DW_FORM_data4 |
| 66 |
- Attribute: DW_AT_call_line |
| 67 |
Form: DW_FORM_data1 |
| 68 |
- Attribute: DW_AT_call_column |
| 69 |
Form: DW_FORM_data1 |
| 70 |
debug_info: |
| 71 |
- Length: 0x0000000000000046 |
| 72 |
Version: 4 |
| 73 |
AbbrOffset: 0x0000000000000000 |
| 74 |
AddrSize: 8 |
| 75 |
Entries: |
| 76 |
- AbbrCode: 0x00000001 |
| 77 |
Values: |
| 78 |
- Value: 0x0000000000000001 |
| 79 |
- Value: 0x0000000000000002 |
| 80 |
- Value: 0x0000000000000000 |
| 81 |
- Value: 0x0000000000000000 |
| 82 |
- AbbrCode: 0x00000002 |
| 83 |
Values: |
| 84 |
- Value: 0x000000000000000D |
| 85 |
- Value: 0x0000000000001000 |
| 86 |
- Value: 0x0000000000002000 |
| 87 |
- Value: 0x0000000000000005 |
| 88 |
- Value: 0x0000000000000002 |
| 89 |
- AbbrCode: 0x00000003 |
| 90 |
Values: |
| 91 |
- Value: 0x0000000000000012 |
| 92 |
- Value: 0x0000000000001100 |
| 93 |
- Value: 0x0000000000000100 |
| 94 |
- Value: 0x000000000000000A |
| 95 |
- Value: 0x0000000000000006 |
| 96 |
- AbbrCode: 0x00000000 |
| 97 |
Values: [] |
| 98 |
- AbbrCode: 0x00000000 |
| 99 |
Values: [] |
| 100 |
... |