From: Phil Muldoon <pmuldoon@redhat.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: tromey@redhat.com, gdb-patches@sourceware.org
Subject: Re: [patch] Support counted strings and embedded nulls in value.string
Date: Tue, 07 Jul 2009 19:51:00 -0000 [thread overview]
Message-ID: <4A53A734.4040803@redhat.com> (raw)
In-Reply-To: <83skh8z424.fsf@gnu.org>
On 07/07/2009 08:27 PM, Eli Zaretskii wrote:
>> 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.
>
Thanks. I'm not sure what this means, I attached the patch as an
attachment just like all the others I've sent. I don't think I've
changed any behaviour in any/all patches I've sent as attachments? What
did you see?
> 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''?
>
I'll add a clearer description; it does assume too much user C string
knowledge, and the wording is unclear. What I was trying to convey was
the string will be converted up to the the optional length, ignoring any
nulls (as a null in a C string context traditionally conveys the end of
a string).
Regards
Phil
next prev parent reply other threads:[~2009-07-07 19:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-30 16:37 Phil Muldoon
2009-07-06 17:36 ` Tom Tromey
2009-07-07 7:32 ` Phil Muldoon
2009-07-07 19:28 ` Eli Zaretskii
2009-07-07 19:51 ` Phil Muldoon [this message]
2009-07-07 19:56 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A53A734.4040803@redhat.com \
--to=pmuldoon@redhat.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox