1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2012-2021 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/>. */
18 /* This source file was generated by:
19 g++ -o gdb.arch/amd64-tailcall-cxx2.S gdb.arch/amd64-tailcall-cxx2.cc -Wall -S -dA -O2 -g
20 Fedora GCC was used here to also test the case of missing DW_AT_linkage_name.
23 .file "amd64-tailcall-cxx2.cc"
28 .type _Z1fi, @function
31 .file 1 "gdb.arch/amd64-tailcall-cxx2.cc"
32 # gdb.arch/amd64-tailcall-cxx2.cc:22
36 # BLOCK 2 freq:10000 seq:0
37 # PRED: ENTRY [100.0%] (FALLTHRU)
38 # gdb.arch/amd64-tailcall-cxx2.cc:23
44 # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL)
49 .section .debug_info,"",@progbits
51 .long 0x84 # Length of Compilation Unit Info
52 .value 0x4 # DWARF version number
53 .long .Ldebug_abbrev0 # Offset Into Abbrev. Section
54 .byte 0x8 # Pointer Size (in bytes)
55 .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit)
56 .long .LASF0 # DW_AT_producer: "GNU C++ 4.8.0 20130220 (Red Hat 4.8.0-0.14) -mtune=generic -march=x86-64 -g -O2"
57 .byte 0x4 # DW_AT_language
58 .long .LASF1 # DW_AT_name: "gdb.arch/amd64-tailcall-cxx2.cc"
59 .long .LASF2 # DW_AT_comp_dir: ""
60 .quad .Ltext0 # DW_AT_low_pc
61 .quad .Letext0-.Ltext0 # DW_AT_high_pc
62 .long .Ldebug_line0 # DW_AT_stmt_list
63 .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram)
65 .ascii "f\0" # DW_AT_name
66 .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-cxx2.cc)
67 .byte 0x15 # DW_AT_decl_line
68 .long .LASF3 # DW_AT_linkage_name: "_Z1fi"
69 .quad .LFB0 # DW_AT_low_pc
70 .quad .LFE0-.LFB0 # DW_AT_high_pc
71 .uleb128 0x1 # DW_AT_frame_base
72 .byte 0x9c # DW_OP_call_frame_cfa
73 # DW_AT_GNU_all_call_sites
74 .long 0x71 # DW_AT_sibling
75 .uleb128 0x3 # (DIE (0x4c) DW_TAG_formal_parameter)
76 .ascii "x\0" # DW_AT_name
77 .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-cxx2.cc)
78 .byte 0x15 # DW_AT_decl_line
79 .long 0x71 # DW_AT_type
80 .long .LLST0 # DW_AT_location
81 .uleb128 0x4 # (DIE (0x59) DW_TAG_GNU_call_site)
82 .quad .LVL2 # DW_AT_low_pc
84 .long 0x78 # DW_AT_abstract_origin
85 .uleb128 0x5 # (DIE (0x66) DW_TAG_GNU_call_site_parameter)
86 .uleb128 0x1 # DW_AT_location
87 .byte 0x55 # DW_OP_reg5
88 .uleb128 0x5 # DW_AT_GNU_call_site_value
89 .byte 0xf3 # DW_OP_GNU_entry_value
91 .byte 0x55 # DW_OP_reg5
92 .byte 0x23 # DW_OP_plus_uconst
94 .byte 0 # end of children of DIE 0x59
95 .byte 0 # end of children of DIE 0x2d
96 .uleb128 0x6 # (DIE (0x71) DW_TAG_base_type)
97 .byte 0x4 # DW_AT_byte_size
98 .byte 0x5 # DW_AT_encoding
99 .ascii "int\0" # DW_AT_name
100 .uleb128 0x7 # (DIE (0x78) DW_TAG_subprogram)
102 .ascii "g\0" # DW_AT_name
103 .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-cxx2.cc)
104 .byte 0x12 # DW_AT_decl_line
105 .long .LASF4 # DW_AT_linkage_name: "_Z1gi"
107 .uleb128 0x8 # (DIE (0x81) DW_TAG_formal_parameter)
108 .long 0x71 # DW_AT_type
109 .byte 0 # end of children of DIE 0x78
110 .byte 0 # end of children of DIE 0xb
111 .section .debug_abbrev,"",@progbits
113 .uleb128 0x1 # (abbrev code)
114 .uleb128 0x11 # (TAG: DW_TAG_compile_unit)
115 .byte 0x1 # DW_children_yes
116 .uleb128 0x25 # (DW_AT_producer)
117 .uleb128 0xe # (DW_FORM_strp)
118 .uleb128 0x13 # (DW_AT_language)
119 .uleb128 0xb # (DW_FORM_data1)
120 .uleb128 0x3 # (DW_AT_name)
121 .uleb128 0xe # (DW_FORM_strp)
122 .uleb128 0x1b # (DW_AT_comp_dir)
123 .uleb128 0xe # (DW_FORM_strp)
124 .uleb128 0x11 # (DW_AT_low_pc)
125 .uleb128 0x1 # (DW_FORM_addr)
126 .uleb128 0x12 # (DW_AT_high_pc)
127 .uleb128 0x7 # (DW_FORM_data8)
128 .uleb128 0x10 # (DW_AT_stmt_list)
129 .uleb128 0x17 # (DW_FORM_sec_offset)
132 .uleb128 0x2 # (abbrev code)
133 .uleb128 0x2e # (TAG: DW_TAG_subprogram)
134 .byte 0x1 # DW_children_yes
135 .uleb128 0x3f # (DW_AT_external)
136 .uleb128 0x19 # (DW_FORM_flag_present)
137 .uleb128 0x3 # (DW_AT_name)
138 .uleb128 0x8 # (DW_FORM_string)
139 .uleb128 0x3a # (DW_AT_decl_file)
140 .uleb128 0xb # (DW_FORM_data1)
141 .uleb128 0x3b # (DW_AT_decl_line)
142 .uleb128 0xb # (DW_FORM_data1)
143 .uleb128 0x6e # (DW_AT_linkage_name)
144 .uleb128 0xe # (DW_FORM_strp)
145 .uleb128 0x11 # (DW_AT_low_pc)
146 .uleb128 0x1 # (DW_FORM_addr)
147 .uleb128 0x12 # (DW_AT_high_pc)
148 .uleb128 0x7 # (DW_FORM_data8)
149 .uleb128 0x40 # (DW_AT_frame_base)
150 .uleb128 0x18 # (DW_FORM_exprloc)
151 .uleb128 0x2117 # (DW_AT_GNU_all_call_sites)
152 .uleb128 0x19 # (DW_FORM_flag_present)
153 .uleb128 0x1 # (DW_AT_sibling)
154 .uleb128 0x13 # (DW_FORM_ref4)
157 .uleb128 0x3 # (abbrev code)
158 .uleb128 0x5 # (TAG: DW_TAG_formal_parameter)
159 .byte 0 # DW_children_no
160 .uleb128 0x3 # (DW_AT_name)
161 .uleb128 0x8 # (DW_FORM_string)
162 .uleb128 0x3a # (DW_AT_decl_file)
163 .uleb128 0xb # (DW_FORM_data1)
164 .uleb128 0x3b # (DW_AT_decl_line)
165 .uleb128 0xb # (DW_FORM_data1)
166 .uleb128 0x49 # (DW_AT_type)
167 .uleb128 0x13 # (DW_FORM_ref4)
168 .uleb128 0x2 # (DW_AT_location)
169 .uleb128 0x17 # (DW_FORM_sec_offset)
172 .uleb128 0x4 # (abbrev code)
173 .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site)
174 .byte 0x1 # DW_children_yes
175 .uleb128 0x11 # (DW_AT_low_pc)
176 .uleb128 0x1 # (DW_FORM_addr)
177 .uleb128 0x2115 # (DW_AT_GNU_tail_call)
178 .uleb128 0x19 # (DW_FORM_flag_present)
179 .uleb128 0x31 # (DW_AT_abstract_origin)
180 .uleb128 0x13 # (DW_FORM_ref4)
183 .uleb128 0x5 # (abbrev code)
184 .uleb128 0x410a # (TAG: DW_TAG_GNU_call_site_parameter)
185 .byte 0 # DW_children_no
186 .uleb128 0x2 # (DW_AT_location)
187 .uleb128 0x18 # (DW_FORM_exprloc)
188 .uleb128 0x2111 # (DW_AT_GNU_call_site_value)
189 .uleb128 0x18 # (DW_FORM_exprloc)
192 .uleb128 0x6 # (abbrev code)
193 .uleb128 0x24 # (TAG: DW_TAG_base_type)
194 .byte 0 # DW_children_no
195 .uleb128 0xb # (DW_AT_byte_size)
196 .uleb128 0xb # (DW_FORM_data1)
197 .uleb128 0x3e # (DW_AT_encoding)
198 .uleb128 0xb # (DW_FORM_data1)
199 .uleb128 0x3 # (DW_AT_name)
200 .uleb128 0x8 # (DW_FORM_string)
203 .uleb128 0x7 # (abbrev code)
204 .uleb128 0x2e # (TAG: DW_TAG_subprogram)
205 .byte 0x1 # DW_children_yes
206 .uleb128 0x3f # (DW_AT_external)
207 .uleb128 0x19 # (DW_FORM_flag_present)
208 .uleb128 0x3 # (DW_AT_name)
209 .uleb128 0x8 # (DW_FORM_string)
210 .uleb128 0x3a # (DW_AT_decl_file)
211 .uleb128 0xb # (DW_FORM_data1)
212 .uleb128 0x3b # (DW_AT_decl_line)
213 .uleb128 0xb # (DW_FORM_data1)
214 .uleb128 0x6e # (DW_AT_linkage_name)
215 .uleb128 0xe # (DW_FORM_strp)
216 .uleb128 0x3c # (DW_AT_declaration)
217 .uleb128 0x19 # (DW_FORM_flag_present)
220 .uleb128 0x8 # (abbrev code)
221 .uleb128 0x5 # (TAG: DW_TAG_formal_parameter)
222 .byte 0 # DW_children_no
223 .uleb128 0x49 # (DW_AT_type)
224 .uleb128 0x13 # (DW_FORM_ref4)
228 .section .debug_loc,"",@progbits
231 .quad .LVL0-.Ltext0 # Location list begin address (*.LLST0)
232 .quad .LVL1-.Ltext0 # Location list end address (*.LLST0)
233 .value 0x1 # Location expression size
234 .byte 0x55 # DW_OP_reg5
235 .quad .LVL1-.Ltext0 # Location list begin address (*.LLST0)
236 .quad .LVL2-1-.Ltext0 # Location list end address (*.LLST0)
237 .value 0x3 # Location expression size
238 .byte 0x75 # DW_OP_breg5
240 .byte 0x9f # DW_OP_stack_value
241 .quad .LVL2-1-.Ltext0 # Location list begin address (*.LLST0)
242 .quad .LFE0-.Ltext0 # Location list end address (*.LLST0)
243 .value 0x4 # Location expression size
244 .byte 0xf3 # DW_OP_GNU_entry_value
246 .byte 0x55 # DW_OP_reg5
247 .byte 0x9f # DW_OP_stack_value
248 .quad 0 # Location list terminator begin (*.LLST0)
249 .quad 0 # Location list terminator end (*.LLST0)
250 .section .debug_aranges,"",@progbits
251 .long 0x2c # Length of Address Ranges Info
252 .value 0x2 # DWARF Version
253 .long .Ldebug_info0 # Offset of Compilation Unit Info
254 .byte 0x8 # Size of Address
255 .byte 0 # Size of Segment Descriptor
256 .value 0 # Pad to 16 byte boundary
258 .quad .Ltext0 # Address
259 .quad .Letext0-.Ltext0 # Length
262 .section .debug_line,"",@progbits
264 .section .debug_str,"MS",@progbits,1
266 .string "GNU C++ 4.8.0 20130220 (Red Hat 4.8.0-0.14) -mtune=generic -march=x86-64 -g -O2"
272 .string "gdb.arch/amd64-tailcall-cxx2.cc"
275 .ident "GCC: (GNU) 4.8.0 20130220 (Red Hat 4.8.0-0.14)"
276 .section .note.GNU-stack,"",@progbits