This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/19436] C++11 ABI tag does not work
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 29 Nov 2017 20:18:33 +0000
- Subject: [Bug c++/19436] C++11 ABI tag does not work
- Auto-submitted: auto-generated
- References: <bug-19436-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19436
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #6 from Pedro Alves <palves at redhat dot com> ---
"print" (In reply to Jan Kratochvil from comment #0)
> It affects default configuration of latest stable release of GCC.
>
>
>
> echo -e '#include <string>\nstd::string foovar;'|g++ -c -o 20.o -Wall -g -x
> c++ -;nm -C 20.o|grep -w foovar
> 0000000000000000 B foovar[abi:cxx11]
> gdb -batch ./20.o -ex "p foovar" -ex "p 'foovar[abi:cxx11]'"
This now works in master:
gdb -batch ./20.o -ex "p foovar" -ex "p 'foovar[abi:cxx11]'"
$1 = ""
$2 = ""
which turns out to be a happy consequence of the commit listed above.
I'm leaving the bug open because while bd69330db86b added comprehensive tests
for breakpoints-on-symbols-with-abi-tags, it added none for print/expressions.
--
You are receiving this mail because:
You are on the CC list for the bug.