1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 /* Debug information */
22 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
24 .2byte 2 /* DWARF version number */
25 .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */
26 .byte 4 /* Pointer Size (in bytes) */
29 .uleb128 1 /* Abbrev: DW_TAG_compile_unit */
30 .4byte .Lproducer /* DW_AT_producer */
31 /* Use C++ to exploit a bug in parsing DW_AT_name "". */
32 .byte 4 /* DW_AT_language (C++) - */
35 .uleb128 2 /* Abbrev: DW_TAG_array_type */
36 .4byte .Lchar_type-.Lcu1_begin /* DW_AT_type */
38 .uleb128 3 /* Abbrev: DW_TAG_subrange_type */
39 .4byte .Luint_type-.Lcu1_begin /* DW_AT_type */
40 .byte 0xd /* DW_AT_upper_bound */
41 .byte 0 /* End of children of die */
44 .uleb128 4 /* Abbrev: DW_TAG_base_type */
45 .4byte .Luint_str /* DW_AT_name */
46 .byte 4 /* DW_AT_byte_size */
47 .byte 7 /* DW_AT_encoding */
50 .uleb128 4 /* Abbrev: DW_TAG_base_type */
51 .4byte .Lchar_str /* DW_AT_name */
52 .byte 1 /* DW_AT_byte_size */
53 .byte 6 /* DW_AT_encoding */
55 .uleb128 5 /* Abbrev: DW_TAG_variable DW_FORM_strp */
56 .4byte .Lvarname /* DW_AT_name */
57 .4byte .Lconst_type-.Lcu1_begin/* DW_AT_type */
58 .4byte .Lvarcontents /* DW_AT_const_value */
59 .byte 1 /* DW_AT_external */
61 .uleb128 6 /* Abbrev: DW_TAG_variable DW_FORM_string */
62 .string "a_string2" /* DW_AT_name */
63 .4byte .Lconst_type-.Lcu1_begin/* DW_AT_type */
64 .string "hello world2\n" /* DW_AT_const_value */
65 .byte 1 /* DW_AT_external */
68 .uleb128 7 /* Abbrev: DW_TAG_const_type */
69 .4byte .Larray_type-.Lcu1_begin/* DW_AT_type */
71 .uleb128 8 /* Abbrev: DW_TAG_variable (name "") */
72 .4byte .Lemptyname /* DW_AT_name */
74 .byte 0 /* End of children of CU */
77 .section .debug_abbrev
79 .uleb128 1 /* Abbrev code */
80 .uleb128 0x11 /* DW_TAG_compile_unit */
81 .byte 0x1 /* has_children */
82 .uleb128 0x25 /* DW_AT_producer */
83 .uleb128 0xe /* DW_FORM_strp */
84 .uleb128 0x13 /* DW_AT_language */
85 .uleb128 0xb /* DW_FORM_data1 */
86 .byte 0x0 /* Terminator */
87 .byte 0x0 /* Terminator */
89 .uleb128 2 /* Abbrev code */
90 .uleb128 0x1 /* TAG: DW_TAG_array_type */
91 .byte 0x1 /* DW_children_yes */
92 .uleb128 0x49 /* DW_AT_type */
93 .uleb128 0x13 /* DW_FORM_ref4 */
94 .byte 0x0 /* Terminator */
95 .byte 0x0 /* Terminator */
97 .uleb128 3 /* Abbrev code */
98 .uleb128 0x21 /* DW_TAG_subrange_type */
99 .byte 0x0 /* no children */
100 .uleb128 0x49 /* DW_AT_type */
101 .uleb128 0x13 /* DW_FORM_ref4 */
102 .uleb128 0x2f /* DW_AT_upper_bound */
103 .uleb128 0xb /* DW_FORM_data1 */
104 .byte 0x0 /* Terminator */
105 .byte 0x0 /* Terminator */
107 .uleb128 4 /* Abbrev code */
108 .uleb128 0x24 /* DW_TAG_base_type */
109 .byte 0x0 /* no_children */
110 .uleb128 0x3 /* DW_AT_name */
111 .uleb128 0xe /* DW_FORM_strp */
112 .uleb128 0xb /* DW_AT_byte_size */
113 .uleb128 0xb /* DW_FORM_data1 */
114 .uleb128 0x3e /* DW_AT_encoding */
115 .uleb128 0xb /* DW_FORM_data1 */
116 .byte 0x0 /* Terminator */
117 .byte 0x0 /* Terminator */
119 .uleb128 5 /* Abbrev code */
120 .uleb128 0x34 /* DW_TAG_variable */
121 .byte 0x0 /* no_children */
122 .uleb128 0x3 /* DW_AT_name */
123 .uleb128 0xe /* DW_FORM_strp */
124 .uleb128 0x49 /* DW_AT_type */
125 .uleb128 0x13 /* DW_FORM_ref4 */
126 .uleb128 0x1c /* DW_AT_const_value */
127 .uleb128 0xe /* DW_FORM_strp */
128 .uleb128 0x3f /* DW_AT_external */
129 .uleb128 0xc /* DW_FORM_flag */
130 .byte 0x0 /* Terminator */
131 .byte 0x0 /* Terminator */
133 .uleb128 6 /* Abbrev code */
134 .uleb128 0x34 /* DW_TAG_variable */
135 .byte 0x0 /* no_children */
136 .uleb128 0x3 /* DW_AT_name */
137 .uleb128 0x8 /* DW_FORM_string */
138 .uleb128 0x49 /* DW_AT_type */
139 .uleb128 0x13 /* DW_FORM_ref4 */
140 .uleb128 0x1c /* DW_AT_const_value */
141 .uleb128 0x8 /* DW_FORM_string */
142 .uleb128 0x3f /* DW_AT_external */
143 .uleb128 0xc /* DW_FORM_flag */
144 .byte 0x0 /* Terminator */
145 .byte 0x0 /* Terminator */
147 .uleb128 7 /* Abbrev code */
148 .uleb128 0x26 /* DW_TAG_const_type */
149 .byte 0x0 /* DW_children_no */
150 .uleb128 0x49 /* DW_AT_type */
151 .uleb128 0x13 /* DW_FORM_ref4 */
152 .byte 0x0 /* Terminator */
153 .byte 0x0 /* Terminator */
155 .uleb128 8 /* Abbrev code */
156 .uleb128 0x34 /* DW_TAG_variable */
157 .byte 0x0 /* DW_children_no */
158 .uleb128 0x3 /* DW_AT_name */
159 .uleb128 0xe /* DW_FORM_strp */
160 .byte 0x0 /* Terminator */
161 .byte 0x0 /* Terminator */
163 .byte 0x0 /* Terminator */
168 .string "GNU C 3.3.3"
172 .string "unsigned int"
176 .string "hello world!\n"