kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

01-dwarf-all.expected (5076B)


      1 dwarf.o:	file format elf64-arm64
      2 
      3 .debug_info contents:
      4   Compilation Unit @ offset 0x0: version 5, abbrev_offset 0x0, addr_size 8, length 0xce
      5   <0xc> DW_TAG_compile_unit
      6     DW_AT_name (DW_FORM_strp) = "test.c"
      7     DW_AT_comp_dir (DW_FORM_strp) = "/proj"
      8     DW_AT_language (DW_FORM_udata) = 0x1d
      9     DW_AT_stmt_list (DW_FORM_sec_offset) = 0x0
     10     DW_AT_low_pc (DW_FORM_addr) = 0x1000
     11     DW_AT_high_pc (DW_FORM_data8) = 0x8
     12     <0x2a> DW_TAG_base_type
     13       DW_AT_name (DW_FORM_strp) = "int"
     14       DW_AT_byte_size (DW_FORM_data1) = 0x4
     15       DW_AT_encoding (DW_FORM_data1) = 0x5
     16     <0x31> DW_TAG_pointer_type
     17       DW_AT_byte_size (DW_FORM_data1) = 0x8
     18       DW_AT_type (DW_FORM_ref4) = 0x2a
     19     <0x37> DW_TAG_typedef
     20       DW_AT_name (DW_FORM_strp) = "my_int"
     21       DW_AT_type (DW_FORM_ref4) = 0x2a
     22     <0x40> DW_TAG_array_type
     23       DW_AT_type (DW_FORM_ref4) = 0x2a
     24       <0x45> DW_TAG_subrange_type
     25         DW_AT_count (DW_FORM_data1) = 0x4
     26     <0x48> DW_TAG_structure_type
     27       DW_AT_name (DW_FORM_strp) = "Point"
     28       DW_AT_byte_size (DW_FORM_data1) = 0x8
     29       <0x4e> DW_TAG_member
     30         DW_AT_name (DW_FORM_strp) = "x_field"
     31         DW_AT_type (DW_FORM_ref4) = 0x2a
     32         DW_AT_data_member_location (DW_FORM_udata) = 0x0
     33       <0x58> DW_TAG_member
     34         DW_AT_name (DW_FORM_strp) = "y_field"
     35         DW_AT_type (DW_FORM_ref4) = 0x2a
     36         DW_AT_data_member_location (DW_FORM_udata) = 0x4
     37     <0x63> DW_TAG_subprogram
     38       DW_AT_name (DW_FORM_strp) = "test_main"
     39       DW_AT_low_pc (DW_FORM_addr) = 0x1000
     40       DW_AT_high_pc (DW_FORM_data8) = 0x8
     41       DW_AT_frame_base (DW_FORM_exprloc) = 1 byte block: 9c
     42       DW_AT_decl_file (DW_FORM_udata) = 0x1
     43       DW_AT_decl_line (DW_FORM_udata) = 0x9
     44       <0x7c> DW_TAG_variable
     45         DW_AT_name (DW_FORM_strp) = "x"
     46         DW_AT_type (DW_FORM_ref4) = 0x2a
     47         DW_AT_location (DW_FORM_exprloc) = 2 byte block: 91 70
     48       <0x88> DW_TAG_variable
     49         DW_AT_name (DW_FORM_strp) = "y"
     50         DW_AT_type (DW_FORM_ref4) = 0x2a
     51         DW_AT_location (DW_FORM_exprloc) = 2 byte block: 91 78
     52       <0x94> DW_TAG_formal_parameter
     53         DW_AT_name (DW_FORM_strp) = "arg"
     54         DW_AT_type (DW_FORM_ref4) = 0x2a
     55         DW_AT_location (DW_FORM_exprloc) = 1 byte block: 50
     56       <0x9f> DW_TAG_variable
     57         DW_AT_name (DW_FORM_strp) = "my_int"
     58         DW_AT_type (DW_FORM_ref4) = 0x31
     59         DW_AT_location (DW_FORM_exprloc) = 2 byte block: 91 68
     60       <0xab> DW_TAG_variable
     61         DW_AT_name (DW_FORM_strp) = "Point"
     62         DW_AT_type (DW_FORM_ref4) = 0x37
     63         DW_AT_location (DW_FORM_exprloc) = 2 byte block: 91 60
     64       <0xb7> DW_TAG_variable
     65         DW_AT_name (DW_FORM_strp) = "x_field"
     66         DW_AT_type (DW_FORM_ref4) = 0x40
     67         DW_AT_location (DW_FORM_exprloc) = 2 byte block: 91 40
     68       <0xc3> DW_TAG_variable
     69         DW_AT_name (DW_FORM_strp) = "y_field"
     70         DW_AT_type (DW_FORM_ref4) = 0x48
     71         DW_AT_location (DW_FORM_exprloc) = 3 byte block: 91 b8 7f
     72 
     73 .debug_abbrev contents:
     74   Abbrev table @ offset 0x0:
     75     [1] DW_TAG_compile_unit [has children]
     76         DW_AT_name  DW_FORM_strp
     77         DW_AT_comp_dir  DW_FORM_strp
     78         DW_AT_language  DW_FORM_udata
     79         DW_AT_stmt_list  DW_FORM_sec_offset
     80         DW_AT_low_pc  DW_FORM_addr
     81         DW_AT_high_pc  DW_FORM_data8
     82     [2] DW_TAG_subprogram [has children]
     83         DW_AT_name  DW_FORM_strp
     84         DW_AT_low_pc  DW_FORM_addr
     85         DW_AT_high_pc  DW_FORM_data8
     86         DW_AT_frame_base  DW_FORM_exprloc
     87         DW_AT_decl_file  DW_FORM_udata
     88         DW_AT_decl_line  DW_FORM_udata
     89     [3] DW_TAG_base_type [no children]
     90         DW_AT_name  DW_FORM_strp
     91         DW_AT_byte_size  DW_FORM_data1
     92         DW_AT_encoding  DW_FORM_data1
     93     [4] DW_TAG_variable [no children]
     94         DW_AT_name  DW_FORM_strp
     95         DW_AT_type  DW_FORM_ref4
     96         DW_AT_location  DW_FORM_exprloc
     97     [5] DW_TAG_formal_parameter [no children]
     98         DW_AT_name  DW_FORM_strp
     99         DW_AT_type  DW_FORM_ref4
    100         DW_AT_location  DW_FORM_exprloc
    101     [6] DW_TAG_pointer_type [no children]
    102         DW_AT_byte_size  DW_FORM_data1
    103         DW_AT_type  DW_FORM_ref4
    104     [7] DW_TAG_typedef [no children]
    105         DW_AT_name  DW_FORM_strp
    106         DW_AT_type  DW_FORM_ref4
    107     [8] DW_TAG_array_type [has children]
    108         DW_AT_type  DW_FORM_ref4
    109     [9] DW_TAG_subrange_type [no children]
    110         DW_AT_count  DW_FORM_data1
    111     [10] DW_TAG_structure_type [has children]
    112         DW_AT_name  DW_FORM_strp
    113         DW_AT_byte_size  DW_FORM_data1
    114     [11] DW_TAG_member [no children]
    115         DW_AT_name  DW_FORM_strp
    116         DW_AT_type  DW_FORM_ref4
    117         DW_AT_data_member_location  DW_FORM_udata
    118 
    119 .debug_line contents:
    120   CU @ offset 0x0:
    121     Address            File   Line   Col  Flags
    122     0x0000000000001000 0      10     0    stmt 
    123     0x0000000000001004 0      11     0    stmt 
    124     0x0000000000001004 0      11     0    stmt end_seq
    125 
    126 .debug_str contents:
    127   0x0  ""
    128   0x1  "test.c"
    129   0x8  "/proj"
    130   0xe  "test_main"
    131   0x18  "int"
    132   0x1c  "x"
    133   0x1e  "y"
    134   0x20  "arg"
    135   0x24  "my_int"
    136   0x2b  "Point"
    137   0x31  "x_field"
    138   0x39  "y_field"
    139