This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb/mi or python interface for front end
- From: Doug Evans <dje at google dot com>
- To: Bob Rossi <bob at brasko dot net>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb <gdb at sourceware dot org>
- Date: Tue, 3 Sep 2013 16:37:47 -0700
- Subject: Re: gdb/mi or python interface for front end
- Authentication-results: sourceware.org; auth=none
- References: <20130823005118 dot GA8847 at bob-VirtualBox> <87eh9ka4i8 dot fsf at fleche dot redhat dot com> <20130903012929 dot GA4379 at 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.]