Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Johannes Overmann <Johannes.Overmann@arm.com>
Cc: gdb@sources.redhat.com
Subject: Re: Not seeing target output in GDB/MI
Date: Fri, 10 Dec 2004 13:38:00 -0000	[thread overview]
Message-ID: <20041210133810.GA11236@nevyn.them.org> (raw)
In-Reply-To: <41B97648.5040107@arm.com>

On Fri, Dec 10, 2004 at 11:11:20AM +0100, Johannes Overmann wrote:
> I can factor out two simple questions:
> 
> - Is there a way to see the target output (stdout) unbuffered or line 
> buffered
>   and still using pipes to comminucate with gdb?
> 
> - Why is the target output not visible in the target-stream-output 
> described in the
>   MI documentation (e.g. prefixed by @)? I see it just as any other output
>   coming from gdb without any indication that it comes from the target.

They have the same answer: GDB does not support encapsulated output for
native targets.  What's probably happening is that the inferior is
writing to the same pipe that you used to communicate with GDB, and
your C library is defaulting to block buffering when it detects that
stdout is not a TTY.

Some remote targets offer output encapsulation.  It wouldn't be
terribly hard to implement for native, but it isn't terribly useful
either, so no one has done the work.  Easiest thing to do may be to use
the "tty" command in GDB.  I don't know if there's a matching MI
command.

-- 
Daniel Jacobowitz


  reply	other threads:[~2004-12-10 13:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-10 10:12 Johannes Overmann
2004-12-10 13:38 ` Daniel Jacobowitz [this message]
2004-12-12 15:25 ` Andrew Cagney

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=20041210133810.GA11236@nevyn.them.org \
    --to=drow@false.org \
    --cc=Johannes.Overmann@arm.com \
    --cc=gdb@sources.redhat.com \
    /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