This is the mail archive of the gdb-patches@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]

Re: [patch] Support counted strings and embedded nulls in value.string


> 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''?


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