Home | History | Annotate | Line # | Download | only in gdb.dwarf2
dw2-simple-locdesc.S revision 1.1
      1  1.1  christos /* This testcase is part of GDB, the GNU debugger.
      2  1.1  christos 
      3  1.1  christos    Copyright 2011-2014 Free Software Foundation, Inc.
      4  1.1  christos 
      5  1.1  christos    This program is free software; you can redistribute it and/or modify
      6  1.1  christos    it under the terms of the GNU General Public License as published by
      7  1.1  christos    the Free Software Foundation; either version 3 of the License, or
      8  1.1  christos    (at your option) any later version.
      9  1.1  christos 
     10  1.1  christos    This program is distributed in the hope that it will be useful,
     11  1.1  christos    but WITHOUT ANY WARRANTY; without even the implied warranty of
     12  1.1  christos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13  1.1  christos    GNU General Public License for more details.
     14  1.1  christos 
     15  1.1  christos    You should have received a copy of the GNU General Public License
     16  1.1  christos    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
     17  1.1  christos 
     18  1.1  christos /* This source file was generated by:
     19  1.1  christos    echo 'struct s { char a[1<<24]; int b; } s;' \
     20  1.1  christos    | gcc -dA -o dw2-simple-locdesc.S -S -gdwarf-2 -x c -
     21  1.1  christos    */
     22  1.1  christos 	.text
     23  1.1  christos var:
     24  1.1  christos 
     25  1.1  christos 	.section	.debug_info
     26  1.1  christos .Ldebug_info0:
     27  1.1  christos d:
     28  1.1  christos 	.4byte	.Lcu_end - 1f	/* Length of Compilation Unit Info */
     29  1.1  christos 1:
     30  1.1  christos 	.2byte	0x3	/* DWARF version number */
     31  1.1  christos 	.4byte	.Ldebug_abbrev0	/* Offset Into Abbrev. Section */
     32  1.1  christos 	.byte	0x4	/* Pointer Size (in bytes) */
     33  1.1  christos 	.uleb128 0x1	/* (DIE (0xb) DW_TAG_compile_unit) */
     34  1.1  christos 	.4byte	.LASF2	/* DW_AT_producer: "GNU C 4.7.0 20110727 (experimental)" */
     35  1.1  christos 	.byte	0x1	/* DW_AT_language */
     36  1.1  christos .Ldie19:
     37  1.1  christos 	.uleb128 0x2	/* (DIE (0x19) DW_TAG_structure_type) */
     38  1.1  christos 	.ascii "s\0"	/* DW_AT_name */
     39  1.1  christos 	.4byte	0x1000004	/* DW_AT_byte_size */
     40  1.1  christos 	.byte	0x1	/* DW_AT_decl_file (<stdin>) */
     41  1.1  christos 	.byte	0x1	/* DW_AT_decl_line */
     42  1.1  christos .Ldie30:
     43  1.1  christos 	.uleb128 0x4	/* (DIE (0x30) DW_TAG_member) */
     44  1.1  christos 	.ascii "data4\0"	/* DW_AT_name */
     45  1.1  christos 	.byte	0x1	/* DW_AT_decl_file (<stdin>) */
     46  1.1  christos 	.byte	0x1	/* DW_AT_decl_line */
     47  1.1  christos 	.4byte	.Ldie62 - d	/* DW_AT_type */
     48  1.1  christos 	.4byte	0x10000	/* DW_AT_data_member_location */
     49  1.1  christos .Ldie32:
     50  1.1  christos 	.uleb128 0x3	/* (DIE (0x32) DW_TAG_member) */
     51  1.1  christos 	.ascii "shl\0"	/* DW_AT_name */
     52  1.1  christos 	.byte	0x1	/* DW_AT_decl_file (<stdin>) */
     53  1.1  christos 	.byte	0x1	/* DW_AT_decl_line */
     54  1.1  christos 	.4byte	.Ldie62 - d	/* DW_AT_type */
     55  1.1  christos 	.byte	0x4	/* DW_AT_data_member_location */
     56  1.1  christos 	.byte	0x40	/* DW_OP_lit16 */
     57  1.1  christos 	.byte	0x44	/* DW_OP_lit20 */
     58  1.1  christos 	.byte	0x24	/* DW_OP_shl */
     59  1.1  christos 	.byte	0x22	/* DW_OP_plus */
     60  1.1  christos 	.byte	0	/* end of children of DIE 0x19 */
     61  1.1  christos .Ldie62:
     62  1.1  christos 	.uleb128 0x7	/* (DIE (0x62) DW_TAG_base_type) */
     63  1.1  christos 	.byte	0x4	/* DW_AT_byte_size */
     64  1.1  christos 	.byte	0x5	/* DW_AT_encoding */
     65  1.1  christos 	.ascii "int\0"	/* DW_AT_name */
     66  1.1  christos .Ldie69:
     67  1.1  christos 	.uleb128 0x8	/* (DIE (0x69) DW_TAG_variable) */
     68  1.1  christos 	.ascii "s\0"	/* DW_AT_name */
     69  1.1  christos 	.byte	0x1	/* DW_AT_decl_file (<stdin>) */
     70  1.1  christos 	.byte	0x1	/* DW_AT_decl_line */
     71  1.1  christos 	.4byte	.Ldie19 - d	/* DW_AT_type */
     72  1.1  christos 	.byte	0x1	/* DW_AT_external */
     73  1.1  christos 	.byte	2f - 1f	/* DW_AT_location */
     74  1.1  christos 1:
     75  1.1  christos 	.byte	0x3	/* DW_OP_addr */
     76  1.1  christos 	.4byte	var
     77  1.1  christos 2:
     78  1.1  christos 	.byte	0	/* end of children of DIE 0xb */
     79  1.1  christos .Lcu_end:
     80  1.1  christos 	.section	.debug_abbrev
     81  1.1  christos .Ldebug_abbrev0:
     82  1.1  christos 	.uleb128 0x1	/* (abbrev code) */
     83  1.1  christos 	.uleb128 0x11	/* (TAG: DW_TAG_compile_unit) */
     84  1.1  christos 	.byte	0x1	/* DW_children_yes */
     85  1.1  christos 	.uleb128 0x25	/* (DW_AT_producer) */
     86  1.1  christos 	.uleb128 0xe	/* (DW_FORM_strp) */
     87  1.1  christos 	.uleb128 0x13	/* (DW_AT_language) */
     88  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
     89  1.1  christos 	.byte	0
     90  1.1  christos 	.byte	0
     91  1.1  christos 	.uleb128 0x2	/* (abbrev code) */
     92  1.1  christos 	.uleb128 0x13	/* (TAG: DW_TAG_structure_type) */
     93  1.1  christos 	.byte	0x1	/* DW_children_yes */
     94  1.1  christos 	.uleb128 0x3	/* (DW_AT_name) */
     95  1.1  christos 	.uleb128 0x8	/* (DW_FORM_string) */
     96  1.1  christos 	.uleb128 0xb	/* (DW_AT_byte_size) */
     97  1.1  christos 	.uleb128 0x6	/* (DW_FORM_data4) */
     98  1.1  christos 	.uleb128 0x3a	/* (DW_AT_decl_file) */
     99  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    100  1.1  christos 	.uleb128 0x3b	/* (DW_AT_decl_line) */
    101  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    102  1.1  christos 	.byte	0
    103  1.1  christos 	.byte	0
    104  1.1  christos 	.uleb128 0x3	/* (abbrev code) */
    105  1.1  christos 	.uleb128 0xd	/* (TAG: DW_TAG_member) */
    106  1.1  christos 	.byte	0	/* DW_children_no */
    107  1.1  christos 	.uleb128 0x3	/* (DW_AT_name) */
    108  1.1  christos 	.uleb128 0x8	/* (DW_FORM_string) */
    109  1.1  christos 	.uleb128 0x3a	/* (DW_AT_decl_file) */
    110  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    111  1.1  christos 	.uleb128 0x3b	/* (DW_AT_decl_line) */
    112  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    113  1.1  christos 	.uleb128 0x49	/* (DW_AT_type) */
    114  1.1  christos 	.uleb128 0x13	/* (DW_FORM_ref4) */
    115  1.1  christos 	.uleb128 0x38	/* (DW_AT_data_member_location) */
    116  1.1  christos 	.uleb128 0xa	/* (DW_FORM_block1) */
    117  1.1  christos 	.byte	0
    118  1.1  christos 	.byte	0
    119  1.1  christos 	.uleb128 0x4	/* (abbrev code) */
    120  1.1  christos 	.uleb128 0xd	/* (TAG: DW_TAG_member) */
    121  1.1  christos 	.byte	0	/* DW_children_no */
    122  1.1  christos 	.uleb128 0x3	/* (DW_AT_name) */
    123  1.1  christos 	.uleb128 0x8	/* (DW_FORM_string) */
    124  1.1  christos 	.uleb128 0x3a	/* (DW_AT_decl_file) */
    125  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    126  1.1  christos 	.uleb128 0x3b	/* (DW_AT_decl_line) */
    127  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    128  1.1  christos 	.uleb128 0x49	/* (DW_AT_type) */
    129  1.1  christos 	.uleb128 0x13	/* (DW_FORM_ref4) */
    130  1.1  christos 	.uleb128 0x38	/* (DW_AT_data_member_location) */
    131  1.1  christos 	.uleb128 0x6	/* (DW_FORM_data4) */
    132  1.1  christos 	.byte	0
    133  1.1  christos 	.byte	0
    134  1.1  christos 	.uleb128 0x7	/* (abbrev code) */
    135  1.1  christos 	.uleb128 0x24	/* (TAG: DW_TAG_base_type) */
    136  1.1  christos 	.byte	0	/* DW_children_no */
    137  1.1  christos 	.uleb128 0xb	/* (DW_AT_byte_size) */
    138  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    139  1.1  christos 	.uleb128 0x3e	/* (DW_AT_encoding) */
    140  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    141  1.1  christos 	.uleb128 0x3	/* (DW_AT_name) */
    142  1.1  christos 	.uleb128 0x8	/* (DW_FORM_string) */
    143  1.1  christos 	.byte	0
    144  1.1  christos 	.byte	0
    145  1.1  christos 	.uleb128 0x8	/* (abbrev code) */
    146  1.1  christos 	.uleb128 0x34	/* (TAG: DW_TAG_variable) */
    147  1.1  christos 	.byte	0	/* DW_children_no */
    148  1.1  christos 	.uleb128 0x3	/* (DW_AT_name) */
    149  1.1  christos 	.uleb128 0x8	/* (DW_FORM_string) */
    150  1.1  christos 	.uleb128 0x3a	/* (DW_AT_decl_file) */
    151  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    152  1.1  christos 	.uleb128 0x3b	/* (DW_AT_decl_line) */
    153  1.1  christos 	.uleb128 0xb	/* (DW_FORM_data1) */
    154  1.1  christos 	.uleb128 0x49	/* (DW_AT_type) */
    155  1.1  christos 	.uleb128 0x13	/* (DW_FORM_ref4) */
    156  1.1  christos 	.uleb128 0x3f	/* (DW_AT_external) */
    157  1.1  christos 	.uleb128 0xc	/* (DW_FORM_flag) */
    158  1.1  christos 	.uleb128 0x2	/* (DW_AT_location) */
    159  1.1  christos 	.uleb128 0xa	/* (DW_FORM_block1) */
    160  1.1  christos 	.byte	0
    161  1.1  christos 	.byte	0
    162  1.1  christos 	.byte	0
    163  1.1  christos 	.section	.debug_str
    164  1.1  christos .LASF2:
    165  1.1  christos 	.string	"GNU C 4.7.0 20110727 (experimental)"
    166  1.1  christos .LASF0:
    167  1.1  christos 	.string	"sizetype"
    168  1.1  christos .LASF1:
    169  1.1  christos 	.string	"char"
    170