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

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. 

> 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).

Konstantin.




  reply	other threads:[~2005-03-03 15:01 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 [this message]
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=Pine.LNX.4.44.0503031734590.22561-100000@ispserv.ispras.ru \
    --to=kostik@ispras.ru \
    --cc=bob@brasko.net \
    --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