1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2004-2020 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/>. */
23 .type func3, %function
43 /* Debug information */
48 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
50 .2byte 2 /* DWARF Version */
51 .4byte .Labbrev1_begin /* Offset into abbrev section */
52 .byte 4 /* Pointer size */
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) */
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 */
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 */
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 */
93 .byte 0 /* End of children of CU */
98 .section .debug_abbrev
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 */
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 */
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 */
152 .byte 0x0 /* Terminator */
153 .byte 0x0 /* Terminator */
158 .4byte .Lline1_end - .Lline1_start /* Initial length */
160 .2byte 2 /* Version */
161 .4byte .Lline1_lines - .Lline1_hdr /* header_length */
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 */
169 /* Standard lengths */
186 /* Include directories */
190 .ascii "b/break-asm-file0.s\0"
198 .byte 0 /* DW_LNE_set_address */
203 .byte 3 /* DW_LNS_advance_line */
204 .sleb128 1 /* ... to 2 */
206 .byte 1 /* DW_LNS_copy */
208 .byte 0 /* DW_LNE_set_address */
211 .4byte .Lbegin_func3+1
213 .byte 3 /* DW_LNS_advance_line */
214 .sleb128 1 /* ... to 3 */
216 .byte 1 /* DW_LNS_copy */
218 .byte 0 /* DW_LNE_set_address */
223 .byte 3 /* DW_LNS_advance_line */
224 .sleb128 4 /* ... to 7 */
226 .byte 1 /* DW_LNS_copy */
228 .byte 0 /* DW_LNE_set_address */
233 /* A line number entry for the same line (7) denotes the end */
235 .byte 3 /* DW_LNS_advance_line */
236 .sleb128 0 /* ... to 7 */
238 .byte 1 /* DW_LNS_copy */
240 .byte 0 /* DW_LNE_set_address */
245 .byte 3 /* DW_LNS_advance_line */
246 .sleb128 1 /* ... to 8 */
248 .byte 1 /* DW_LNS_copy */
250 .byte 0 /* DW_LNE_set_address */
255 .byte 0 /* DW_LNE_end_of_sequence */