Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Karganov Konstantin <kostik@ispras.ru>
Cc: gdb@sources.redhat.com
Subject: Re: Broken MI output
Date: Thu, 03 Mar 2005 14:34:00 -0000	[thread overview]
Message-ID: <20050303143354.GB32613@white> (raw)
In-Reply-To: <Pine.LNX.4.44.0503031716400.22295-100000@ispserv.ispras.ru>

On Thu, Mar 03, 2005 at 05:20:51PM +0300, Karganov Konstantin wrote:
> On Thu, 3 Mar 2005, Bob Rossi wrote:
> 
> > The echoing should be turned off from the GDB side. There are several
> > ways to do this.
> The echoing doesn't matter since it does't go from gdb stdout.
> 
> > Are you communicating with GDB through a pipe, pty?
> Currently - through the pipe.
> 
> > The inferior output needs to be redirected to another pty using the
> > console 'tty' command. This will "unmix" the inferior output and the MI
> > output.
> And if I don't want to redirect it to pty (or even can't)?
> There is a special grammar rule (target-stream-output) for this case but 
> it is not used! Why?..

I've never dealt with that, but I assume it's when GDB is talking to a
target program, not a normal program on the host.

A target program most likely has a special form of I/O, which is
redirected through GDB. A program running on the host outputs directly
to the terminal, and it's impossible for GDB to know anything about it.

Unless of course, GDB puts a pty between the inferior and itself. 

Thanks,
Bob Rossi


  reply	other threads:[~2005-03-03 14:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-03 14:17 Karganov Konstantin
2005-03-03 14:20 ` Bob Rossi
2005-03-03 14:26   ` Karganov Konstantin
2005-03-03 14:34     ` Bob Rossi [this message]
2005-03-03 15:02       ` Karganov Konstantin
2005-03-03 15:06         ` Bob Rossi

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=20050303143354.GB32613@white \
    --to=bob@brasko.net \
    --cc=gdb@sources.redhat.com \
    --cc=kostik@ispras.ru \
    /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