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