break-asm-file1.s revision 1.1.1.2
1/* This testcase is part of GDB, the GNU debugger.
2
3   Copyright 2004-2015 Free Software Foundation, Inc.
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
7   the Free Software Foundation; either version 3 of the License, or
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.
14
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/>.  */
17
18	.text
19.Lbegin_text1:
20	.globl _func3
21_func3:
22	.globl func3
23	.type func3, %function
24func3:
25.Lbegin_func3:
26	nop
27	nop
28.Lend_func3:
29	.size func3, .-func3
30_func:
31	.type func, %function
32func:
33.Lbegin_func:
34	nop
35.Lfunc_1:
36	nop
37.Lfunc_2:
38	nop
39.Lend_func:
40	.size func, .-func
41.Lend_text1:
42
43/* Debug information */
44
45	.section .debug_info
46.Lcu1_begin:
47	/* CU header */
48	.4byte	.Lcu1_end - .Lcu1_start		/* Length of Compilation Unit */
49.Lcu1_start:
50	.2byte	2				/* DWARF Version */
51	.4byte	.Labbrev1_begin			/* Offset into abbrev section */
52	.byte	4				/* Pointer size */
53
54	/* CU die */
55	.uleb128 1				/* Abbrev: DW_TAG_compile_unit */
56	.4byte	.Lline1_begin			/* DW_AT_stmt_list */
57	.4byte	.Lend_text1			/* DW_AT_high_pc */
58	.4byte	.Lbegin_text1			/* DW_AT_low_pc */
59	.ascii	"b/break-asm-file0.s\0"			/* DW_AT_name */
60	.ascii	"GNU C 3.3.3\0"			/* DW_AT_producer */
61	.2byte	0x8001				/* DW_AT_language (Mips Assembler) */
62
63	/* func3 */
64	.uleb128	2			/* Abbrev: DW_TAG_subprogram */
65	.byte		1			/* DW_AT_external */
66	.byte		1			/* DW_AT_decl_file */
67	.byte		2			/* DW_AT_decl_line */
68	.ascii		"func3\0"		/* DW_AT_name */
69	.4byte		.Ltype_int-.Lcu1_begin	/* DW_AT_type */
70	.4byte		.Lbegin_func3	/* DW_AT_low_pc */
71	.4byte		.Lend_func3		/* DW_AT_high_pc */
72	.byte		1			/* DW_AT_frame_base: length */
73	.byte		0x55			/* DW_AT_frame_base: DW_OP_reg5 */
74
75	/* func */
76	.uleb128	2			/* Abbrev: DW_TAG_subprogram */
77	.byte		0			/* DW_AT_external */
78	.byte		1			/* DW_AT_decl_file */
79	.byte		4			/* DW_AT_decl_line */
80	.ascii		"func\0"		/* DW_AT_name */
81	.4byte		.Ltype_int-.Lcu1_begin	/* DW_AT_type */
82	.4byte		.Lbegin_func	/* DW_AT_low_pc */
83	.4byte		.Lend_func		/* DW_AT_high_pc */
84	.byte		1			/* DW_AT_frame_base: length */
85	.byte		0x55			/* DW_AT_frame_base: DW_OP_reg5 */
86
87.Ltype_int:
88	.uleb128	3			/* Abbrev: DW_TAG_base_type */
89	.ascii		"int\0"			/* DW_AT_name */
90	.byte		4			/* DW_AT_byte_size */
91	.byte		5			/* DW_AT_encoding */
92
93	.byte		0			/* End of children of CU */
94
95.Lcu1_end:
96
97/* Abbrev table */
98	.section .debug_abbrev
99.Labbrev1_begin:
100	.uleb128	1			/* Abbrev code */
101	.uleb128	0x11			/* DW_TAG_compile_unit */
102	.byte		1			/* has_children */
103	.uleb128	0x10			/* DW_AT_stmt_list */
104	.uleb128	0x6			/* DW_FORM_data4 */
105	.uleb128	0x12			/* DW_AT_high_pc */
106	.uleb128	0x1			/* DW_FORM_addr */
107	.uleb128	0x11			/* DW_AT_low_pc */
108	.uleb128	0x1			/* DW_FORM_addr */
109	.uleb128	0x3			/* DW_AT_name */
110	.uleb128	0x8			/* DW_FORM_string */
111	.uleb128	0x25			/* DW_AT_producer */
112	.uleb128	0x8			/* DW_FORM_string */
113	.uleb128	0x13			/* DW_AT_language */
114	.uleb128	0x5			/* DW_FORM_data2 */
115	.byte		0x0			/* Terminator */
116	.byte		0x0			/* Terminator */
117
118	.uleb128	2			/* Abbrev code */
119	.uleb128	0x2e			/* DW_TAG_subprogram */
120	.byte		0			/* has_children */
121	.uleb128	0x3f			/* DW_AT_external */
122	.uleb128	0xc			/* DW_FORM_flag */
123	.uleb128	0x3a			/* DW_AT_decl_file */
124	.uleb128	0xb			/* DW_FORM_data1 */
125	.uleb128	0x3b			/* DW_AT_decl_line */
126	.uleb128	0xb			/* DW_FORM_data1 */
127	.uleb128	0x3			/* DW_AT_name */
128	.uleb128	0x8			/* DW_FORM_string */
129	.uleb128	0x49			/* DW_AT_type */
130	.uleb128	0x13			/* DW_FORM_ref4 */
131	.uleb128	0x11			/* DW_AT_low_pc */
132	.uleb128	0x1			/* DW_FORM_addr */
133	.uleb128	0x12			/* DW_AT_high_pc */
134	.uleb128	0x1			/* DW_FORM_addr */
135	.uleb128	0x40			/* DW_AT_frame_base */
136	.uleb128	0xa			/* DW_FORM_block1 */
137	.byte		0x0			/* Terminator */
138	.byte		0x0			/* Terminator */
139
140	.uleb128	3			/* Abbrev code */
141	.uleb128	0x24			/* DW_TAG_base_type */
142	.byte		0			/* has_children */
143	.uleb128	0x3			/* DW_AT_name */
144	.uleb128	0x8			/* DW_FORM_string */
145	.uleb128	0xb			/* DW_AT_byte_size */
146	.uleb128	0xb			/* DW_FORM_data1 */
147	.uleb128	0x3e			/* DW_AT_encoding */
148	.uleb128	0xb			/* DW_FORM_data1 */
149	.byte		0x0			/* Terminator */
150	.byte		0x0			/* Terminator */
151
152	.byte		0x0			/* Terminator */
153	.byte		0x0			/* Terminator */
154
155/* Line table */
156	.section .debug_line
157.Lline1_begin:
158	.4byte		.Lline1_end - .Lline1_start	/* Initial length */
159.Lline1_start:
160	.2byte		2			/* Version */
161	.4byte		.Lline1_lines - .Lline1_hdr	/* header_length */
162.Lline1_hdr:
163	.byte		1			/* Minimum insn length */
164	.byte		1			/* default_is_stmt */
165	.byte		1			/* line_base */
166	.byte		1			/* line_range */
167	.byte		0x10			/* opcode_base */
168
169	/* Standard lengths */
170	.byte		0
171	.byte		1
172	.byte		1
173	.byte		1
174	.byte		1
175	.byte		0
176	.byte		0
177	.byte		0
178	.byte		1
179	.byte		0
180	.byte		0
181	.byte		1
182	.byte		0
183	.byte		0
184	.byte		0
185
186	/* Include directories */
187	.byte		0
188
189	/* File names */
190	.ascii		"b/break-asm-file0.s\0"
191	.uleb128	0
192	.uleb128	0
193	.uleb128	0
194
195	.byte		0
196
197.Lline1_lines:
198	.byte		0	/* DW_LNE_set_address */
199	.uleb128	5
200	.byte		2
201	.4byte		.Lbegin_func3
202
203	.byte		3	/* DW_LNS_advance_line */
204	.sleb128	1	/* ... to 2 */
205
206	.byte		1	/* DW_LNS_copy */
207
208	.byte		0	/* DW_LNE_set_address */
209	.uleb128	5
210	.byte		2
211	.4byte		.Lbegin_func3+1
212
213	.byte		3	/* DW_LNS_advance_line */
214	.sleb128	1	/* ... to 3 */
215
216	.byte		1	/* DW_LNS_copy */
217
218	.byte		0	/* DW_LNE_set_address */
219	.uleb128	5
220	.byte		2
221	.4byte		.Lbegin_func
222
223	.byte		3	/* DW_LNS_advance_line */
224	.sleb128	4	/* ... to 7 */
225
226	.byte		1	/* DW_LNS_copy */
227
228	.byte		0	/* DW_LNE_set_address */
229	.uleb128	5
230	.byte		2
231	.4byte		.Lfunc_1
232
233	/* A line number entry for the same line (7) denotes the end */
234	/* of prologue.  */
235	.byte		3	/* DW_LNS_advance_line */
236	.sleb128	0	/* ... to 7 */
237
238	.byte		1	/* DW_LNS_copy */
239
240	.byte		0	/* DW_LNE_set_address */
241	.uleb128	5
242	.byte		2
243	.4byte		.Lfunc_2
244
245	.byte		3	/* DW_LNS_advance_line */
246	.sleb128	1	/* ... to 8 */
247
248	.byte		1	/* DW_LNS_copy */
249
250	.byte		0	/* DW_LNE_set_address */
251	.uleb128	5
252	.byte		2
253	.4byte		.Lend_func
254
255	.byte		0	/* DW_LNE_end_of_sequence */
256	.uleb128	1
257	.byte		1
258
259.Lline1_end:
260