1/* This testcase is part of GDB, the GNU debugger. 2 3 Copyright 2012-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/* 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. 21 */ 22 23 .file "amd64-tailcall-cxx2.cc" 24 .text 25.Ltext0: 26 .p2align 4,,15 27 .globl _Z1fi 28 .type _Z1fi, @function 29_Z1fi: 30.LFB0: 31 .file 1 "gdb.arch/amd64-tailcall-cxx2.cc" 32 # gdb.arch/amd64-tailcall-cxx2.cc:22 33 .loc 1 22 0 34 .cfi_startproc 35.LVL0: 36# BLOCK 2 freq:10000 seq:0 37# PRED: ENTRY [100.0%] (FALLTHRU) 38 # gdb.arch/amd64-tailcall-cxx2.cc:23 39 .loc 1 23 0 40 addl $1, %edi 41.LVL1: 42 jmp _Z1gi 43.LVL2: 44# SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) 45 .cfi_endproc 46.LFE0: 47 .size _Z1fi, .-_Z1fi 48.Letext0: 49 .section .debug_info,"",@progbits 50.Ldebug_info0: 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) 64 # DW_AT_external 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 83 # DW_AT_GNU_tail_call 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 90 .uleb128 0x1 91 .byte 0x55 # DW_OP_reg5 92 .byte 0x23 # DW_OP_plus_uconst 93 .uleb128 0x1 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) 101 # DW_AT_external 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" 106 # DW_AT_declaration 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 112.Ldebug_abbrev0: 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) 130 .byte 0 131 .byte 0 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) 155 .byte 0 156 .byte 0 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) 170 .byte 0 171 .byte 0 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) 181 .byte 0 182 .byte 0 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) 190 .byte 0 191 .byte 0 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) 201 .byte 0 202 .byte 0 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) 218 .byte 0 219 .byte 0 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) 225 .byte 0 226 .byte 0 227 .byte 0 228 .section .debug_loc,"",@progbits 229.Ldebug_loc0: 230.LLST0: 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 239 .sleb128 -1 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 245 .uleb128 0x1 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 257 .value 0 258 .quad .Ltext0 # Address 259 .quad .Letext0-.Ltext0 # Length 260 .quad 0 261 .quad 0 262 .section .debug_line,"",@progbits 263.Ldebug_line0: 264 .section .debug_str,"MS",@progbits,1 265.LASF0: 266 .string "GNU C++ 4.8.0 20130220 (Red Hat 4.8.0-0.14) -mtune=generic -march=x86-64 -g -O2" 267.LASF2: 268 .string "" 269.LASF3: 270 .string "_Z1fi" 271.LASF1: 272 .string "gdb.arch/amd64-tailcall-cxx2.cc" 273.LASF4: 274 .string "_Z1gi" 275 .ident "GCC: (GNU) 4.8.0 20130220 (Red Hat 4.8.0-0.14)" 276 .section .note.GNU-stack,"",@progbits 277