public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "dregon1 at freemail dot hu" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug mi/27427] New: gdb/mi tsv-created response gives extra '\\' 'n' characters at end of message
Date: Tue, 16 Feb 2021 09:38:23 +0000	[thread overview]
Message-ID: <bug-27427-4717@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=27427

            Bug ID: 27427
           Summary: gdb/mi tsv-created response gives extra '\\' 'n'
                    characters at end of message
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: mi
          Assignee: unassigned at sourceware dot org
          Reporter: dregon1 at freemail dot hu
  Target Milestone: ---

Steps to reproduce:
1. in first terminal: gdbserver --multi localhost:1234
2. in second terminal: gdb --interpreter=mi -ex "target extended-remote
localhost:1234" -ex "quit"

Result:
$ gdb --interpreter=mi -ex "target extended-remote localhost:1234" -ex "quit"
=thread-group-added,id="i1"
~"GNU gdb (GDB) Fedora 10.1-2.fc33\n"
~"Copyright (C) 2020 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to
change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by
law."
~"\nType \"show copying\" and \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\n"
~"Type \"show configuration\" for configuration details.\n"
~"For bug reporting instructions, please see:\n"
~"<https://www.gnu.org/software/gdb/bugs/>.\n"
~"Find the GDB manual and other documentation resources online at:\n   
<http://www.gnu.org/software/gdb/documentation/>."
~"\n\n"
~"For help, type \"help\".\n"
~"Type \"apropos word\" to search for commands related to \"word\".\n"
~"Remote debugging using localhost:1234\n"
=tsv-created,name="trace_timestamp",initial="0"\n
$
$ gdb --interpreter=mi -ex "target extended-remote localhost:1234" -ex "quit" |
od -t c | tail
0001440       f   o   r       c   o   m   m   a   n   d   s       r   e
0001460   l   a   t   e   d       t   o       \   "   w   o   r   d   \
0001500   "   .   \   n   "  \n   ~   "   R   e   m   o   t   e       d
0001520   e   b   u   g   g   i   n   g       u   s   i   n   g       l
0001540   o   c   a   l   h   o   s   t   :   1   2   3   4   \   n   "
0001560  \n   =   t   s   v   -   c   r   e   a   t   e   d   ,   n   a
0001600   m   e   =   "   t   r   a   c   e   _   t   i   m   e   s   t
0001620   a   m   p   "   ,   i   n   i   t   i   a   l   =   "   0   "
0001640   \   n  \n
0001643
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2021-02-16  9:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16  9:38 dregon1 at freemail dot hu [this message]
2022-05-25 17:59 ` [Bug mi/27427] " tromey at sourceware dot org

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=bug-27427-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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).