This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/16020] Print trailing nul in c++ std::string?
- From: "b.r.longbons at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 08 Oct 2013 22:21:22 +0000
- Subject: [Bug python/16020] Print trailing nul in c++ std::string?
- Auto-submitted: auto-generated
- References: <bug-16020-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16020
Ben Longbons <b.r.longbons at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b.r.longbons at gmail dot com
--- Comment #1 from Ben Longbons <b.r.longbons at gmail dot com> ---
You can get the right behavior by adding 1 to the length in the libstdc++
printer.
But the actual bug is that gdb is unconditionally removing a single trailing \0
from all strings. It makes sense for the builtin char[] printing, but not for
things passed from python.
--
You are receiving this mail because:
You are on the CC list for the bug.