From: Bob Rossi <bob@brasko.net>
To: gdb@sourceware.org
Subject: GDB/MI escape characters
Date: Mon, 28 Jul 2014 01:03:00 -0000 [thread overview]
Message-ID: <20140728010303.GA10702@linux> (raw)
Hi,
Does anyone know what characters GDB escapes in the GDB/MI protocol
above and beyond what would otherwise be escaped from the CLI?
For instance if i print the variable p,
char *p = "aaa\"aaa\naaa\raaa\\aaa";
from the cli I get,
(gdb) p p
$1 = 0x400584 "aaa\"aaa\naaa\raaa\\aaa"
from MI I get,
p p
~"$2 = 0x400584 \"aaa\\\"aaa\\naaa\\raaa\\\\aaa\""
From the output I can see that \ and " are escaped in MI output above
and beyond what is escaped in the CLI. Are there other characters that
would be?
The function mi-out.c:mi_field_string might be a clue?
Thanks,
Bob Rossi
next reply other threads:[~2014-07-28 1:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 1:03 Bob Rossi [this message]
2014-07-30 10:45 ` Bob Rossi
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=20140728010303.GA10702@linux \
--to=bob@brasko.net \
--cc=gdb@sourceware.org \
/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