public inbox for gdb@sourceware.org
 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 15:06:00 -0000	[thread overview]
Message-ID: <20050303150633.GE32613@white> (raw)
In-Reply-To: <Pine.LNX.4.44.0503031734590.22561-100000@ispserv.ispras.ru>

On Thu, Mar 03, 2005 at 05:55:11PM +0300, Karganov Konstantin wrote:
> On Thu, 3 Mar 2005, Bob Rossi wrote:
> 
> > A target program most likely has a special form of I/O, which is
> If gdb was attached to running process - yes, the program has own IO from 
> the starting time and gdb/MI has it's own IO - all is fine here.
> 
> > 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.
> But if the debuggee is started inside gdb it shares the same tty with the 
> debugger.
> The problem of breaking MI grammar with inferior output, can be solved 
> adding a pipe to/from the inferior, monitoring the pipe and quoting target 
> output. 

GDB doesn't currently create pty's for the inferior. So this would be a feature 
request that I've asked about here, 
   http://sources.redhat.com/ml/gdb/2005-03/msg00024.html

> > When GDB is in MI mode, why couldn't it put a pty between the inferior
> > and itself.
> And redirect it to the same terminal, where gdb is started? Or where?
> 
> The only reasonable solution I see here is to have distinct ttys for a 
> inferior (that is controlled by the operator) and for gdb (that is 
> controlled by a GUI using MI).

I don't really know of a project that use's the MI and doesn't give the
inferior it's own tty to work with.

Thanks,
Bob Rossi

      reply	other threads:[~2005-03-03 15:06 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
2005-03-03 15:02       ` Karganov Konstantin
2005-03-03 15:06         ` Bob Rossi [this message]

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=20050303150633.GE32613@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).