public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17507] New: GDB-MI interpreter should use "console-stream" records for monitor command results
@ 2014-10-23 15:52 teodor.madan at freescale dot com
0 siblings, 0 replies; only message in thread
From: teodor.madan at freescale dot com @ 2014-10-23 15:52 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17507
Bug ID: 17507
Summary: GDB-MI interpreter should use "console-stream" records
for monitor command results
Product: gdb
Version: 7.6
Status: NEW
Severity: enhancement
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: teodor.madan at freescale dot com
When executing "monitor help", reply from gdbserver is reported as
"target-stream" thus it will be routed to console/tty associated with debugged
application. It is expected to be printed to console-stream being a result of
CLI command.
A gdb/mi frontend (e.g. eclipse) will route stream records to different console
views depending on the record type.
The undesirable effect in this situation: user will enter a gdb command in gdb
shell console and will see result in a totally different console.
In low-level GDB jtag debugging user has to interact often with "monitor"
commands due to a lot of very specialized extensions.
---------------steps to reproduce -------------
1. start "gdbserver -multi :2345"
2. start gdb with mi interpretter: "gdb --interpretter=mi"
(gdb)
target extended-remote :2345
&"target extended-remote :2345\n"
~"Remote debugging using :2345\n"
=tsv-created,name="trace_timestamp",initial="0"\n
^done
(gdb)
mon set debug-hw-points 1
&"mon set debug-hw-points 1\n"
@"H/W point debugging output enabled.\n"
^done
(gdb)
Inspect result of the command. It does start with "@" as a sign of a stdout
activity of debugged application, not "~" that would mean that it is a string
dedicated to be displayed to whoever sent that command.
-------------
According to chapter "27.5.2 gdb/mi Output Syntax",
"console-stream-output is output that should be displayed as is in the console.
It is the textual response to a CLI command. All the console output is prefixed
by ‘~’."
"target-stream-output is the output produced by the target program. All the
target output is prefixed by ‘@’."
An optional gdb set subcommand would work as well. e.g. "set remoteshell 1"
--
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-16868-listarch-gdb-prs=sources.redhat.com@sourceware.org Thu Oct 23 17:24:26 2014
Return-Path: <gdb-prs-return-16868-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 17694 invoked by alias); 23 Oct 2014 17:24:26 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 17666 invoked by uid 48); 23 Oct 2014 17:24:26 -0000
From: "palves at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/17408] ../../gdb/infrun.c:5256: internal-error:
switch_back_to_stepped_thread: Assertion `!schedlock_applies (1)' failed.
Date: Thu, 23 Oct 2014 17:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: gdb
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: palves at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: palves at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-17408-4717-ql0M8mCcCY@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-17408-4717@http.sourceware.org/bugzilla/>
References: <bug-17408-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-q4/txt/msg00111.txt.bz2
Content-length: 601
https://sourceware.org/bugzilla/show_bug.cgi?id\x17408
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |ASSIGNED
CC| |palves at redhat dot com
Assignee|unassigned at sourceware dot org |palves at redhat dot com
--- Comment #4 from Pedro Alves <palves at redhat dot com> ---
Looking.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-23 15:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-23 15:52 [Bug gdb/17507] New: GDB-MI interpreter should use "console-stream" records for monitor command results teodor.madan at freescale dot com
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).