]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-canonicalize-type.S
1 /* Copyright 2012-2024 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 3 of the License, or
6 (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>. */
15
16 #define CONCAT1(a, b) CONCAT2(a, b)
17 #define CONCAT2(a, b) a ## b
18
19 #ifdef SYMBOL_PREFIX
20 # define SYMBOL(str) CONCAT1(SYMBOL_PREFIX, str)
21 #else
22 # define SYMBOL(str) str
23 #endif
24
25 .text
26 .globl SYMBOL(main)
27 SYMBOL(main):
28 .4byte 0
29 .Lmain_end:
30 .section .debug_info
31 debug_start:
32 .4byte debug_end - 1f /* Length of Compilation Unit Info */
33 1:
34 .2byte 0x3 /* DWARF version number */
35 .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */
36 .byte 0x4 /* Pointer Size (in bytes) */
37 .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */
38 .ascii "GNU C 4.4.3\0" /* DW_AT_producer */
39 .byte 0x4 /* DW_AT_language = DW_LANG_C_plus_plus */
40 .ascii "1.c\0" /* DW_AT_name */
41 .4byte SYMBOL(main) /* DW_AT_low_pc */
42 .4byte .Lmain_end /* DW_AT_high_pc */
43 .uleb128 0x4 /* (DIE (0x3c) DW_TAG_subprogram) */
44 .ascii "f\0" /* DW_AT_name */
45 /* Value 0 would require has_section_at_zero != 0 (which is true, though). */
46 .4byte SYMBOL(main) /* DW_AT_low_pc */
47 .4byte .Lmain_end /* DW_AT_high_pc */
48 .byte 0x1 /* DW_AT_prototyped */
49
50 .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */
51 .4byte .Ltype_sizeof - debug_start /* DW_AT_type */
52 .ascii "param_sizeof\0" /* DW_AT_name */
53
54 .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */
55 .4byte .Ltype_opnew - debug_start /* DW_AT_type */
56 .ascii "param_opnew\0" /* DW_AT_name */
57
58 .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */
59 .4byte .Ltype_opdelete - debug_start /* DW_AT_type */
60 .ascii "param_opdelete\0" /* DW_AT_name */
61
62 .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */
63 .4byte .Ltype_opnewarray - debug_start /* DW_AT_type */
64 .ascii "param_opnewarray\0" /* DW_AT_name */
65
66 .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */
67 .4byte .Ltype_opdeletearray - debug_start /* DW_AT_type */
68 .ascii "param_opdeletearray\0" /* DW_AT_name */
69 .byte 0x0 /* end of children of DIE 0x3c */
70
71 .Ltype_sizeof:
72 .uleb128 3 /* Abbrev: DW_TAG_base_type */
73 .ascii "typename<sizeof(int)>\0" /* DW_AT_name */
74 .byte 4 /* DW_AT_byte_size */
75 .byte 5 /* DW_AT_encoding */
76
77 .Ltype_opnew:
78 .uleb128 3 /* Abbrev: DW_TAG_base_type */
79 .ascii "C::operator new(int)\0" /* DW_AT_name */
80 .byte 4 /* DW_AT_byte_size */
81 .byte 5 /* DW_AT_encoding */
82
83 .Ltype_opdelete:
84 .uleb128 3 /* Abbrev: DW_TAG_base_type */
85 .ascii "C::operator delete(void *)\0" /* DW_AT_name */
86 .byte 4 /* DW_AT_byte_size */
87 .byte 5 /* DW_AT_encoding */
88
89 .Ltype_opnewarray:
90 .uleb128 3 /* Abbrev: DW_TAG_base_type */
91 /* The correct new[] syntax is probably unsupported by GDB. */
92 .ascii "C::operator new[](int)\0" /* DW_AT_name */
93 .byte 4 /* DW_AT_byte_size */
94 .byte 5 /* DW_AT_encoding */
95
96 .Ltype_opdeletearray:
97 .uleb128 3 /* Abbrev: DW_TAG_base_type */
98 /* The correct delete[] syntax is probably unsupported by GDB. */
99 .ascii "C::operator delete[](void *)\0" /* DW_AT_name */
100 .byte 4 /* DW_AT_byte_size */
101 .byte 5 /* DW_AT_encoding */
102
103 .byte 0x0 /* end of children of DIE 0xb */
104 debug_end:
105
106 .section .debug_abbrev
107 .Ldebug_abbrev0:
108 .uleb128 0x1 /* (abbrev code) */
109 .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */
110 .byte 0x1 /* DW_children_yes */
111 .uleb128 0x25 /* (DW_AT_producer) */
112 .uleb128 0x8 /* (DW_FORM_string) */
113 .uleb128 0x13 /* (DW_AT_language) */
114 .uleb128 0xb /* (DW_FORM_data1) */
115 .uleb128 0x3 /* (DW_AT_name) */
116 .uleb128 0x8 /* (DW_FORM_string) */
117 .uleb128 0x11 /* (DW_AT_low_pc) */
118 .uleb128 0x1 /* (DW_FORM_addr) */
119 .uleb128 0x12 /* (DW_AT_high_pc) */
120 .uleb128 0x1 /* (DW_FORM_addr) */
121 .byte 0x0
122 .byte 0x0
123 .uleb128 3 /* Abbrev code */
124 .uleb128 0x24 /* DW_TAG_base_type */
125 .byte 0 /* has_children */
126 .uleb128 0x3 /* DW_AT_name */
127 .uleb128 0x8 /* DW_FORM_string */
128 .uleb128 0xb /* DW_AT_byte_size */
129 .uleb128 0xb /* DW_FORM_data1 */
130 .uleb128 0x3e /* DW_AT_encoding */
131 .uleb128 0xb /* DW_FORM_data1 */
132 .byte 0x0 /* Terminator */
133 .byte 0x0 /* Terminator */
134 .uleb128 0x4 /* (abbrev code) */
135 .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */
136 .byte 0x1 /* DW_children_yes */
137 .uleb128 0x3 /* (DW_AT_name) */
138 .uleb128 0x8 /* (DW_FORM_string) */
139 .uleb128 0x11 /* (DW_AT_low_pc) */
140 .uleb128 0x1 /* (DW_FORM_addr) */
141 .uleb128 0x12 /* (DW_AT_high_pc) */
142 .uleb128 0x1 /* (DW_FORM_addr) */
143 .uleb128 0x27 /* (DW_AT_prototyped) */
144 .uleb128 0xc /* (DW_FORM_flag) */
145 .byte 0x0
146 .byte 0x0
147 .uleb128 0x5 /* (abbrev code) */
148 .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */
149 .byte 0x0 /* DW_children_no */
150 .uleb128 0x49 /* (DW_AT_type) */
151 .uleb128 0x13 /* (DW_FORM_ref4) */
152 .uleb128 0x3 /* DW_AT_name */
153 .uleb128 0x8 /* DW_FORM_string */
154 .byte 0x0
155 .byte 0x0
156 .byte 0x0
157 #ifdef __arm__
158 .section .note.GNU-stack,"",%progbits
159 #else
160 .section .note.GNU-stack,"",@progbits
161 #endif