testsuite/gdb.dwarf2: dw2-case-insensitive.exp: p fuNC_lang fails on arm
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-intercu.S
CommitLineData
d11e72cb
DJ
1/* This testcase is part of GDB, the GNU debugger.
2
28e7fd62 3 Copyright 2004-2013 Free Software Foundation, Inc.
d11e72cb
DJ
4
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
e22f8b7c 7 the Free Software Foundation; either version 3 of the License, or
d11e72cb
DJ
8 (at your option) any later version.
9
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.
e22f8b7c 14
d11e72cb 15 You should have received a copy of the GNU General Public License
e22f8b7c 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
d11e72cb
DJ
17
18/* Test a minimal file containing DWARF-2 information. This test also
19 serves as a skeleton for other DWARF-2 tests. Most other tests will
20 not be this extensively itemized and commented... */
21
22/* Dummy function to provide debug information for. */
23
24 .text
25.Lbegin_text1:
26 .globl func_cu1
27 .type func_cu1, %function
28func_cu1:
29.Lbegin_func_cu1:
30 .int 0
31.Lend_func_cu1:
32 .size func_cu1, .-func_cu1
33.Lend_text1:
34
35/* Debug information */
36
37 .section .debug_info
38.Lcu1_begin:
39 /* CU header */
474d0ad3 40 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
d11e72cb 41.Lcu1_start:
474d0ad3
AS
42 .2byte 2 /* DWARF Version */
43 .4byte .Labbrev1_begin /* Offset into abbrev section */
d11e72cb
DJ
44 .byte 4 /* Pointer size */
45
46 /* CU die */
47 .uleb128 1 /* Abbrev: DW_TAG_compile_unit */
474d0ad3
AS
48 .4byte .Lline1_begin /* DW_AT_stmt_list */
49 .4byte .Lend_text1 /* DW_AT_high_pc */
50 .4byte .Lbegin_text1 /* DW_AT_low_pc */
d11e72cb
DJ
51 .ascii "file1.txt\0" /* DW_AT_name */
52 .ascii "GNU C 3.3.3\0" /* DW_AT_producer */
53 .byte 1 /* DW_AT_language (C) */
54
55 /* func_cu1 */
56 .uleb128 2 /* Abbrev: DW_TAG_subprogram */
57 .byte 1 /* DW_AT_external */
58 .byte 1 /* DW_AT_decl_file */
59 .byte 2 /* DW_AT_decl_line */
60 .ascii "func_cu1\0" /* DW_AT_name */
3019eac3 61 .4byte .Ltype_int2_in_cu2 /* DW_AT_type */
474d0ad3
AS
62 .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */
63 .4byte .Lend_func_cu1 /* DW_AT_high_pc */
d11e72cb
DJ
64 .byte 1 /* DW_AT_frame_base: length */
65 .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */
66
67 .byte 0 /* End of children of CU */
68
69.Lcu1_end:
70
71 /* Second compilation unit. */
72.Lcu2_begin:
73 /* CU header */
474d0ad3 74 .4byte .Lcu2_end - .Lcu2_start /* Length of Compilation Unit */
d11e72cb 75.Lcu2_start:
474d0ad3
AS
76 .2byte 2 /* DWARF Version */
77 .4byte .Labbrev2_begin /* Offset into abbrev section */
d11e72cb
DJ
78 .byte 4 /* Pointer size */
79
80 /* CU die */
81 .uleb128 1 /* Abbrev: DW_TAG_compile_unit */
82 .ascii "file1.txt\0" /* DW_AT_name */
83 .ascii "GNU C 3.3.3\0" /* DW_AT_producer */
84 .byte 1 /* DW_AT_language (C) */
85
3019eac3
DE
86 /* This type is named "int2" and not "int" to ensure it is unique,
87 and thus we can easily ensure we expand this CU and not some
88 other CU with "int". */
89.Ltype_int2_in_cu2:
d11e72cb 90 .uleb128 2 /* Abbrev: DW_TAG_base_type */
3019eac3 91 .ascii "int2\0" /* DW_AT_name */
d11e72cb
DJ
92 .byte 4 /* DW_AT_byte_size */
93 .byte 5 /* DW_AT_encoding */
94
95 .byte 0 /* End of children of CU */
96
97.Lcu2_end:
98
99/* Abbrev table */
100 .section .debug_abbrev
101.Labbrev1_begin:
102 .uleb128 1 /* Abbrev code */
103 .uleb128 0x11 /* DW_TAG_compile_unit */
104 .byte 1 /* has_children */
105 .uleb128 0x10 /* DW_AT_stmt_list */
106 .uleb128 0x6 /* DW_FORM_data4 */
107 .uleb128 0x12 /* DW_AT_high_pc */
108 .uleb128 0x1 /* DW_FORM_addr */
109 .uleb128 0x11 /* DW_AT_low_pc */
110 .uleb128 0x1 /* DW_FORM_addr */
111 .uleb128 0x3 /* DW_AT_name */
112 .uleb128 0x8 /* DW_FORM_string */
113 .uleb128 0x25 /* DW_AT_producer */
114 .uleb128 0x8 /* DW_FORM_string */
115 .uleb128 0x13 /* DW_AT_language */
116 .uleb128 0xb /* DW_FORM_data1 */
117 .byte 0x0 /* Terminator */
118 .byte 0x0 /* Terminator */
119
120 .uleb128 2 /* Abbrev code */
121 .uleb128 0x2e /* DW_TAG_subprogram */
122 .byte 0 /* has_children */
123 .uleb128 0x3f /* DW_AT_external */
124 .uleb128 0xc /* DW_FORM_flag */
125 .uleb128 0x3a /* DW_AT_decl_file */
126 .uleb128 0xb /* DW_FORM_data1 */
127 .uleb128 0x3b /* DW_AT_decl_line */
128 .uleb128 0xb /* DW_FORM_data1 */
129 .uleb128 0x3 /* DW_AT_name */
130 .uleb128 0x8 /* DW_FORM_string */
131 .uleb128 0x49 /* DW_AT_type */
132 .uleb128 0x10 /* DW_FORM_ref_addr */
133 .uleb128 0x11 /* DW_AT_low_pc */
134 .uleb128 0x1 /* DW_FORM_addr */
135 .uleb128 0x12 /* DW_AT_high_pc */
136 .uleb128 0x1 /* DW_FORM_addr */
137 .uleb128 0x40 /* DW_AT_frame_base */
138 .uleb128 0xa /* DW_FORM_block1 */
139 .byte 0x0 /* Terminator */
140 .byte 0x0 /* Terminator */
141
142 .byte 0x0 /* Terminator */
143 .byte 0x0 /* Terminator */
144
145.Labbrev2_begin:
146 .uleb128 1 /* Abbrev code */
147 .uleb128 0x11 /* DW_TAG_compile_unit */
148 .byte 1 /* has_children */
149 .uleb128 0x3 /* DW_AT_name */
150 .uleb128 0x8 /* DW_FORM_string */
151 .uleb128 0x25 /* DW_AT_producer */
152 .uleb128 0x8 /* DW_FORM_string */
153 .uleb128 0x13 /* DW_AT_language */
154 .uleb128 0xb /* DW_FORM_data1 */
155 .byte 0x0 /* Terminator */
156 .byte 0x0 /* Terminator */
157
158 .uleb128 2 /* Abbrev code */
159 .uleb128 0x24 /* DW_TAG_base_type */
160 .byte 0 /* has_children */
161 .uleb128 0x3 /* DW_AT_name */
162 .uleb128 0x8 /* DW_FORM_string */
163 .uleb128 0xb /* DW_AT_byte_size */
164 .uleb128 0xb /* DW_FORM_data1 */
165 .uleb128 0x3e /* DW_AT_encoding */
166 .uleb128 0xb /* DW_FORM_data1 */
167 .byte 0x0 /* Terminator */
168 .byte 0x0 /* Terminator */
169
170 .byte 0x0 /* Terminator */
171 .byte 0x0 /* Terminator */
172
173/* Line table */
174 .section .debug_line
175.Lline1_begin:
474d0ad3 176 .4byte .Lline1_end - .Lline1_start /* Initial length */
d11e72cb 177.Lline1_start:
474d0ad3
AS
178 .2byte 2 /* Version */
179 .4byte .Lline1_lines - .Lline1_hdr /* header_length */
d11e72cb
DJ
180.Lline1_hdr:
181 .byte 1 /* Minimum insn length */
182 .byte 1 /* default_is_stmt */
183 .byte 1 /* line_base */
184 .byte 1 /* line_range */
185 .byte 0x10 /* opcode_base */
186
187 /* Standard lengths */
188 .byte 0
189 .byte 1
190 .byte 1
191 .byte 1
192 .byte 1
193 .byte 0
194 .byte 0
195 .byte 0
196 .byte 1
197 .byte 0
198 .byte 0
199 .byte 1
200 .byte 0
201 .byte 0
202 .byte 0
203
204 /* Include directories */
205 .byte 0
206
207 /* File names */
208 .ascii "file1.txt\0"
209 .uleb128 0
210 .uleb128 0
211 .uleb128 0
212
213 .byte 0
214
215.Lline1_lines:
216 .byte 0 /* DW_LNE_set_address */
217 .uleb128 5
218 .byte 2
474d0ad3 219 .4byte .Lbegin_func_cu1
d11e72cb
DJ
220
221 .byte 3 /* DW_LNS_advance_line */
222 .sleb128 3 /* ... to 4 */
223
224 .byte 1 /* DW_LNS_copy */
225
226 .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */
227
228 .byte 0 /* DW_LNE_set_address */
229 .uleb128 5
230 .byte 2
474d0ad3 231 .4byte .Lend_func_cu1
d11e72cb
DJ
232
233 .byte 0 /* DW_LNE_end_of_sequence */
234 .uleb128 1
235 .byte 1
236
237.Lline1_end:
This page took 0.89173 seconds and 4 git commands to generate.