From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26967 invoked by alias); 18 Nov 2005 14:43:56 -0000 Received: (qmail 26949 invoked by uid 22791); 18 Nov 2005 14:43:54 -0000 Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 18 Nov 2005 14:43:54 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1Ed7Sv-0003Gz-5G for gdb@sources.redhat.com; Fri, 18 Nov 2005 17:43:51 +0300 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by zigzag.lvk.cs.msu.su with esmtp (Exim 4.50) id 1Ed7Sv-0003Gl-2O for gdb@sources.redhat.com; Fri, 18 Nov 2005 17:43:49 +0300 From: Vladimir Prus To: gdb@sources.redhat.com Subject: Re: Output from target in MI mode Date: Fri, 18 Nov 2005 14:43:00 -0000 User-Agent: KMail/1.7.2 References: <20051118134819.GA2255@white> In-Reply-To: <20051118134819.GA2255@white> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511181743.48398.ghost@cs.msu.su> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00385.txt.bz2 On Friday 18 November 2005 16:48, Bob Rossi wrote: > > I see this: > > > > (gdb) > > -exec-run > > ^running > > (gdb) > > Hi > > *stopped,reason="exited-normally" > > (gdb) > > > > The output from target is not prepended by "@". Gdb version is 6.3. > > Is this a bug, or out-of-date docs, or I read the docs incorrectly? > > Currently, when running on the host, the output from the inferior is > mixed with the MI output. If you would like to separate the output you > can use the -inferior-set-tty command. This means that your front end > needs to be capable of creating a pty pair. That way, all of the > inferior output will be captured on a seperate descriptor. Sure, that's what happening now. But that pty handling is a bit messy, since gdb already knows what output comes from inferior, it could just prepend it with some character. > The 'target' in teh above sentence I believe is refering to when GDB is > using a remote protocol to a specific piece of hardware. It's not > refering to the host. Ok, then it's not clear to me either. There's specific packet in remote protocol ("OXXXX") which allows to pass arbitrary text from remote side to gdb. Is this what's printed with "@". Or there some other messages from remote that are also printed with "@" prefix? - Volodya