From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12682 invoked by alias); 3 Mar 2005 15:06:58 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12491 invoked from network); 3 Mar 2005 15:06:35 -0000 Received: from unknown (HELO lakermmtao02.cox.net) (68.230.240.37) by sourceware.org with SMTP; 3 Mar 2005 15:06:35 -0000 Received: from white ([68.9.64.121]) by lakermmtao02.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050303150631.KKSJ867.lakermmtao02.cox.net@white>; Thu, 3 Mar 2005 10:06:31 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1D6ruL-00006f-00; Thu, 03 Mar 2005 10:06:33 -0500 Date: Thu, 03 Mar 2005 15:06:00 -0000 From: Bob Rossi To: Karganov Konstantin Cc: gdb@sources.redhat.com Subject: Re: Broken MI output Message-ID: <20050303150633.GE32613@white> Mail-Followup-To: Karganov Konstantin , gdb@sources.redhat.com References: <20050303143354.GB32613@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-SW-Source: 2005-03/txt/msg00027.txt.bz2 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