=tsv-created MI event outputs extra "\n" on MI channel

Jan Vrany <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.