From: Jan Vrany <jan.vrany@fit.cvut.cz>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: =tsv-created MI event outputs extra "\n" on MI channel
Date: Wed, 10 Oct 2018 09:39:00 -0000 [thread overview]
Message-ID: <ea7b622c8e323716a119aa5c34393f1372ad4336.camel@fit.cvut.cz> (raw)
Hi,
I just discovered that =tsv-created event contains an extra \n at the end
(i mean, backslash + n):
gdbserver localhost:1234 ./factorial1
then
gdb -i mi2 -ex "target extended-remote localhost:1234"
produces:
<a lot of stuff, cut for brevity>
~"Remote debugging using localhost:1234\n"
=tsv-created,name="trace_timestamp",initial="0"\n
(gdb)
Note the literal \n at the end of =tsv-created. This is IMO not
a valid MI record, according to documentation.
Looking at the code, this has been introduced in commit
73ab01a07df, from Jun 2016, so this is an old change.
Is this something that is worth fixing or is it something
all other MI consumers (but mine :-) are already used to so
it cannot be changed?
Best, Jan
reply other threads:[~2018-10-10 9:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=ea7b622c8e323716a119aa5c34393f1372ad4336.camel@fit.cvut.cz \
--to=jan.vrany@fit.cvut.cz \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).