From: Doug Evans <dje@google.com>
To: Bob Rossi <bob@brasko.net>
Cc: Tom Tromey <tromey@redhat.com>, gdb <gdb@sourceware.org>
Subject: Re: gdb/mi or python interface for front end
Date: Tue, 03 Sep 2013 23:37:00 -0000 [thread overview]
Message-ID: <CADPb22TCzdrEmzuDAT7wynJCSVrfQC2wcc3U_7dB3FEb2hCtqg@mail.gmail.com> (raw)
In-Reply-To: <20130903012929.GA4379@bob-VirtualBox>
On Mon, Sep 2, 2013 at 6:29 PM, Bob Rossi <bob@brasko.net> wrote:
> OK. I'm curious if anyone knows if the MI protocol supports NUL
> character bytes in it's output. I'm designing the protocol layer and
> it would be convient to know if GDB transmits NUL character bytes
> while sending output. (It's probably possible when printing a string
> array?) An example would be awesome if so.
I looked into this.
IWBN if this were documented, otherwise I have to go on what I find
and I certainly could have missed something.
E.g., I see mi_console_raw_packet calling fputstrn_unfiltered
which calls printchar which escapes control characters.
I believe the answer is MI output will *never* contain the NUL char,
if present it will be quoted as \000.
[Again, I would be wrong, so heads up. And corrections are most welcome.]
next prev parent reply other threads:[~2013-09-03 23:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 0:51 Bob Rossi
2013-08-23 14:03 ` Tom Tromey
2013-09-03 1:29 ` Bob Rossi
2013-09-03 21:25 ` Phil Muldoon
2013-09-03 23:37 ` Doug Evans [this message]
2013-08-23 14:07 ` Joel Brobecker
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=CADPb22TCzdrEmzuDAT7wynJCSVrfQC2wcc3U_7dB3FEb2hCtqg@mail.gmail.com \
--to=dje@google.com \
--cc=bob@brasko.net \
--cc=gdb@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