From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0BB663860C33; Wed, 9 Sep 2020 15:47:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BB663860C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599666464; bh=21pkpo3qC1dnvG0k/Qj5bZbV2JCqzW2NrPR3kjdjybw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=geFyJyQvx8BkTsyF/kVW4fDOdcd/SBn1kEaxikKrEsq6WHIX0cZaZcEgAC3VmkvQj LsHp2JrrP1ZnstyRszdPTJF3MwVAVSQepgFaYUMb71lD1YI4s/fj4sK/ET1OD40UwE QpePRGE+r8Fecu0uHpCVY4ZikJSQx+GHQMMdRehA= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/96997] step over in gdb always stops in basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) Date: Wed, 09 Sep 2020 15:47:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2020 15:47:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96997 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2020-09-09 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- Confirmed: $ gdb -quiet -ex start -ex n -ex l -ex where -ex n -ex l -ex where -ex n = -ex l -ex where -ex cont -ex quit a.out Reading symbols from a.out... Temporary breakpoint 1 at 0x4011bf: file so.C, line 7. Starting program: /tmp/a.out=20 Temporary breakpoint 1, main () at so.C:7 7 std::cout << std::string{"str1"}; 525 basic_string(const _CharT* __s, const _Alloc& __a =3D _Alloc(= )) 520 #if __cpp_deduction_guides && ! defined _GLIBCXX_DEFINING_STRING_INSTANTIATIONS 521 // _GLIBCXX_RESOLVE_LIB_DEFECTS 522 // 3076. basic_string CTAD ambiguity 523 template> 524 #endif 525 basic_string(const _CharT* __s, const _Alloc& __a =3D _Alloc(= )) 526 : _M_dataplus(_M_local_data(), __a) 527 { _M_construct(__s, __s ? __s + traits_type::length(__s) : __s+npos); } 528 529 /** #0 main () at /usr/include/c++/10/bits/basic_string.h:525 8 std::cout << std::string{"str2"}; 3 4 5 int main() 6 { 7 std::cout << std::string{"str1"}; 8 std::cout << std::string{"str2"}; 9 return 0; 10 } 11 #0 main () at so.C:8 525 basic_string(const _CharT* __s, const _Alloc& __a =3D _Alloc(= )) 520 #if __cpp_deduction_guides && ! defined _GLIBCXX_DEFINING_STRING_INSTANTIATIONS 521 // _GLIBCXX_RESOLVE_LIB_DEFECTS 522 // 3076. basic_string CTAD ambiguity 523 template> 524 #endif 525 basic_string(const _CharT* __s, const _Alloc& __a =3D _Alloc(= )) 526 : _M_dataplus(_M_local_data(), __a) 527 { _M_construct(__s, __s ? __s + traits_type::length(__s) : __s+npos); } 528 529 /** #0 main () at /usr/include/c++/10/bits/basic_string.h:525 Continuing. str1str2[Inferior 1 (process 2307959) exited normally] Although the current frame is still main() the current location is shown as= the basic_string constructor.=