Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml
# RUN: yaml2obj %s | obj2yaml | FileCheck %s | # RUN: yaml2obj %s | obj2yaml | FileCheck %s | ||||
jhenderson: Let's move this test change into a different patch, to avoid doing too much at once. | |||||
--- !mach-o | --- !mach-o | ||||
FileHeader: | FileHeader: | ||||
magic: 0xFEEDFACF | magic: 0xFEEDFACF | ||||
cputype: 0x01000007 | cputype: 0x01000007 | ||||
cpusubtype: 0x00000003 | cpusubtype: 0x00000003 | ||||
filetype: 0x0000000A | filetype: 0x0000000A | ||||
ncmds: 5 | ncmds: 5 | ||||
sizeofcmds: 1800 | sizeofcmds: 1800 | ||||
▲ Show 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | Sections: | ||||
reloff: 0x00000000 | reloff: 0x00000000 | ||||
nreloc: 0 | nreloc: 0 | ||||
flags: 0x00000000 | flags: 0x00000000 | ||||
reserved1: 0x00000000 | reserved1: 0x00000000 | ||||
reserved2: 0x00000000 | reserved2: 0x00000000 | ||||
reserved3: 0x00000000 | reserved3: 0x00000000 | ||||
DWARF: | DWARF: | ||||
debug_abbrev: | debug_abbrev: | ||||
- Table: | |||||
- Code: 0x00000001 | - Code: 0x00000001 | ||||
Tag: DW_TAG_compile_unit | Tag: DW_TAG_compile_unit | ||||
Children: DW_CHILDREN_yes | Children: DW_CHILDREN_yes | ||||
Attributes: | Attributes: | ||||
- Attribute: DW_AT_producer | - Attribute: DW_AT_producer | ||||
Form: DW_FORM_strp | Form: DW_FORM_strp | ||||
- Attribute: DW_AT_language | - Attribute: DW_AT_language | ||||
Form: DW_FORM_data2 | Form: DW_FORM_data2 | ||||
- Attribute: DW_AT_name | - Attribute: DW_AT_name | ||||
Form: DW_FORM_strp | Form: DW_FORM_strp | ||||
- Attribute: DW_AT_stmt_list | - Attribute: DW_AT_stmt_list | ||||
Form: DW_FORM_sec_offset | Form: DW_FORM_sec_offset | ||||
- Attribute: DW_AT_comp_dir | - Attribute: DW_AT_comp_dir | ||||
Form: DW_FORM_strp | Form: DW_FORM_strp | ||||
- Attribute: DW_AT_low_pc | - Attribute: DW_AT_low_pc | ||||
Form: DW_FORM_addr | Form: DW_FORM_addr | ||||
- Attribute: DW_AT_high_pc | - Attribute: DW_AT_high_pc | ||||
Form: DW_FORM_data4 | Form: DW_FORM_data4 | ||||
- Code: 0x00000002 | - Code: 0x00000002 | ||||
Tag: DW_TAG_subprogram | Tag: DW_TAG_subprogram | ||||
Children: DW_CHILDREN_yes | Children: DW_CHILDREN_yes | ||||
Attributes: | Attributes: | ||||
- Attribute: DW_AT_low_pc | - Attribute: DW_AT_low_pc | ||||
Form: DW_FORM_addr | Form: DW_FORM_addr | ||||
- Attribute: DW_AT_high_pc | - Attribute: DW_AT_high_pc | ||||
Form: DW_FORM_data4 | Form: DW_FORM_data4 | ||||
- Attribute: DW_AT_frame_base | - Attribute: DW_AT_frame_base | ||||
Form: DW_FORM_exprloc | Form: DW_FORM_exprloc | ||||
- Attribute: DW_AT_name | - Attribute: DW_AT_name | ||||
Form: DW_FORM_strp | Form: DW_FORM_strp | ||||
- Attribute: DW_AT_decl_file | - Attribute: DW_AT_decl_file | ||||
Form: DW_FORM_data1 | Form: DW_FORM_data1 | ||||
- Attribute: DW_AT_decl_line | - Attribute: DW_AT_decl_line | ||||
Form: DW_FORM_data1 | Form: DW_FORM_data1 | ||||
- Attribute: DW_AT_prototyped | - Attribute: DW_AT_prototyped | ||||
Form: DW_FORM_flag_present | Form: DW_FORM_flag_present | ||||
- Attribute: DW_AT_type | - Attribute: DW_AT_type | ||||
Form: DW_FORM_ref4 | Form: DW_FORM_ref4 | ||||
- Attribute: DW_AT_external | - Attribute: DW_AT_external | ||||
Form: DW_FORM_flag_present | Form: DW_FORM_flag_present | ||||
- Code: 0x00000003 | - Code: 0x00000003 | ||||
Tag: DW_TAG_formal_parameter | Tag: DW_TAG_formal_parameter | ||||
Children: DW_CHILDREN_no | Children: DW_CHILDREN_no | ||||
Attributes: | Attributes: | ||||
- Attribute: DW_AT_location | - Attribute: DW_AT_location | ||||
Form: DW_FORM_exprloc | Form: DW_FORM_exprloc | ||||
- Attribute: DW_AT_name | - Attribute: DW_AT_name | ||||
Form: DW_FORM_strp | Form: DW_FORM_strp | ||||
- Attribute: DW_AT_decl_file | - Attribute: DW_AT_decl_file | ||||
Form: DW_FORM_data1 | Form: DW_FORM_data1 | ||||
- Attribute: DW_AT_decl_line | - Attribute: DW_AT_decl_line | ||||
Form: DW_FORM_data1 | Form: DW_FORM_data1 | ||||
- Attribute: DW_AT_type | - Attribute: DW_AT_type | ||||
Form: DW_FORM_ref4 | Form: DW_FORM_ref4 | ||||
- Code: 0x00000004 | - Code: 0x00000004 | ||||
Tag: DW_TAG_base_type | Tag: DW_TAG_base_type | ||||
Children: DW_CHILDREN_no | Children: DW_CHILDREN_no | ||||
Attributes: | Attributes: | ||||
- Attribute: DW_AT_name | - Attribute: DW_AT_name | ||||
Form: DW_FORM_strp | Form: DW_FORM_strp | ||||
- Attribute: DW_AT_encoding | - Attribute: DW_AT_encoding | ||||
Form: DW_FORM_data1 | Form: DW_FORM_data1 | ||||
- Attribute: DW_AT_byte_size | - Attribute: DW_AT_byte_size | ||||
Form: DW_FORM_data1 | Form: DW_FORM_data1 | ||||
- Code: 0x00000005 | - Code: 0x00000005 | ||||
Tag: DW_TAG_pointer_type | Tag: DW_TAG_pointer_type | ||||
Children: DW_CHILDREN_no | Children: DW_CHILDREN_no | ||||
Attributes: | Attributes: | ||||
- Attribute: DW_AT_type | - Attribute: DW_AT_type | ||||
Form: DW_FORM_ref4 | Form: DW_FORM_ref4 | ||||
... | ... | ||||
#CHECK: DWARF: | #CHECK: DWARF: | ||||
#CHECK: debug_abbrev: | #CHECK: debug_abbrev: | ||||
#CHECK: - Code: 0x0000000000000001 | #CHECK: - Code: 0x0000000000000001 | ||||
#CHECK: Tag: DW_TAG_compile_unit | #CHECK: Tag: DW_TAG_compile_unit | ||||
#CHECK: Children: DW_CHILDREN_yes | #CHECK: Children: DW_CHILDREN_yes | ||||
#CHECK: Attributes: | #CHECK: Attributes: | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |
Let's move this test change into a different patch, to avoid doing too much at once.