From: Bob Rossi <bob@brasko.net>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb@sources.redhat.com
Subject: Re: Output from target in MI mode
Date: Fri, 18 Nov 2005 13:48:00 -0000 [thread overview]
Message-ID: <20051118134819.GA2255@white> (raw)
In-Reply-To: <dlkhi5$d1v$1@sea.gmane.org>
On Fri, Nov 18, 2005 at 03:31:01PM +0300, Vladimir Prus wrote:
>
> Hi,
> the docs, in "MI Stream records", say:
>
> `"@" STRING-OUTPUT'
> The target output stream contains any textual output from the
> running target.
>
> However, when I compile and run the following command:
>
> #include <stdio.h>
>
> int main()
> {
> printf("Hi\n");
> return 0;
> }
>
> I see this:
>
> (gdb)
> -exec-run
> ^running
> (gdb)
> Hi
> *stopped,reason="exited-normally"
> (gdb)
>
> The output from target is not prepended by "@". Gdb version is 6.3.
> Is this a bug, or out-of-date docs, or I read the docs incorrectly?
Currently, when running on the host, the output from the inferior is
mixed with the MI output. If you would like to separate the output you
can use the -inferior-set-tty command. This means that your front end
needs to be capable of creating a pty pair. That way, all of the
inferior output will be captured on a seperate descriptor.
The 'target' in teh above sentence I believe is refering to when GDB is
using a remote protocol to a specific piece of hardware. It's not
refering to the host.
Bob Rossi
next prev parent reply other threads:[~2005-11-18 13:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 12:34 Vladimir Prus
2005-11-18 13:48 ` Bob Rossi [this message]
2005-11-18 14:43 ` Vladimir Prus
2005-11-18 14:47 ` Bob Rossi
2005-11-18 15:31 ` Daniel Jacobowitz
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=20051118134819.GA2255@white \
--to=bob@brasko.net \
--cc=gdb@sources.redhat.com \
--cc=ghost@cs.msu.su \
/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