From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50853 invoked by alias); 25 Jun 2015 20:15:34 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 50797 invoked by uid 48); 25 Jun 2015 20:15:30 -0000 From: "ks132 at yandex dot ru" To: gdb-prs@sourceware.org Subject: [Bug c++/18601] New: Can't set breakpoint on function with abi_tag attribute Date: Thu, 25 Jun 2015 20:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.9 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ks132 at yandex dot ru X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q2/txt/msg00460.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18601 Bug ID: 18601 Summary: Can't set breakpoint on function with abi_tag attribute Product: gdb Version: 7.9 Status: NEW Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: ks132 at yandex dot ru Target Milestone: --- [ks@localhost ~]$ cat test.cpp void f(int) __attribute ((abi_tag ("foo"))); void f(int) { } int main() { f(42); } [ks@localhost ~]$ g++ -g test.cpp [ks@localhost ~]$ [ks@localhost ~]$ nm -C a.out|grep foo 00000000004005b6 T f[abi:foo](int) [ks@localhost ~]$ [ks@localhost ~]$ gdb -q a.out Reading symbols from a.out...done. (gdb) b 'f[abi:foo](int)' No source file named f[abi. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) GCC 5.1 uses abi_tag attribute for Dual ABI implementation: https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html This makes impossible to set breakpoints on some functions with new ABI, which is enabled by default: https://gcc.gnu.org/gcc-5/changes.html#libstdcxx -- You are receiving this mail because: You are on the CC list for the bug.