This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Support counted strings and embedded nulls in value.string
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Tue, 07 Jul 2009 22:27:47 +0300
- Subject: Re: [patch] Support counted strings and embedded nulls in value.string
- References: <4A4A3F27.9060401@redhat.com> <m3zlbhu31v.fsf@fleche.redhat.com> <4A52FA05.9050607@redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 07 Jul 2009 08:32:21 +0100
> From: Phil Muldoon <pmuldoon@redhat.com>
> CC: gdb-patches@sourceware.org
>
> Pending Eli's response, I'll check this patch in.
Sorry, I missed that because you sent the patch as binary attachment.
The patch for the manual is okay, with one comment. I don't
understand the last sentence in this hunk:
For C-like languages, a value is a string if it is a pointer to or an
array of characters or ints. The string is assumed to be terminated
-by a zero of the appropriate width.
+by a zero of the appropriate width. However if the optional length
+argument is given, the string will be converted beyond any embedded
+nulls up to the length specified.
What does it mean ``converted beyond any embedded nulls''?