This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/19436] C++11 ABI tag does not work


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]