public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/16086] MI data-evaluate-expression wrong repeat counts
[not found] <bug-16086-4717@http.sourceware.org/bugzilla/>
@ 2013-10-25 15:23 ` forum at emblocks dot org
0 siblings, 0 replies; only message in thread
From: forum at emblocks dot org @ 2013-10-25 15:23 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16086
--- Comment #1 from Gerard Zagema <forum at emblocks dot org> ---
I think (works for me) that in valprint.c in the function generic_printstr the
make_wchar_iterator gets the original string length and not modified by c-style
terminators. I did the following:
// NOTE (Gerard#1#): Remember original length ('i' is not used here)
i= length;
/* If the string was not truncated due to `set print elements', and
the last byte of it is a null, we don't print that, in
traditional C style. */
if (c_style_terminator
&& !force_ellipses
&& length > 0
&& (extract_unsigned_integer (string + (length - 1) * width,
width, byte_order) == 0))
length--;
if (length == 0)
{
fputs_filtered ("\"\"", stream);
return;
}
/* Arrange to iterate over the characters, in wchar_t form. */
// NOTE (Gerard#1#): replace length with original 'i'
iter = make_wchar_iterator (string, i * width, encoding, width);
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-25 15:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-16086-4717@http.sourceware.org/bugzilla/>
2013-10-25 15:23 ` [Bug gdb/16086] MI data-evaluate-expression wrong repeat counts forum at emblocks dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).