This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/18601] New: Can't set breakpoint on function with abi_tag attribute
- From: "ks132 at yandex dot ru" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 25 Jun 2015 20:15:26 +0000
- Subject: [Bug c++/18601] New: Can't set breakpoint on function with abi_tag attribute
- Auto-submitted: auto-generated
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.