From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25748 invoked by alias); 5 Feb 2003 14:45:14 -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 25740 invoked from network); 5 Feb 2003 14:45:13 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 5 Feb 2003 14:45:13 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h15EjDf32459 for ; Wed, 5 Feb 2003 09:45:13 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h15EjDa19271 for ; Wed, 5 Feb 2003 09:45:13 -0500 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h15EjCt08470; Wed, 5 Feb 2003 09:45:12 -0500 Received: by localhost.redhat.com (Postfix, from userid 469) id 6F911FF79; Wed, 5 Feb 2003 09:49:24 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15937.9332.349911.154686@localhost.redhat.com> Date: Wed, 05 Feb 2003 14:45:00 -0000 To: Jim Blandy Cc: Nick Roberts , gdb@sources.redhat.com Subject: Re: Questions about GDB/MI In-Reply-To: References: <15936.19654.642542.951794@nick.uklinux.net> X-SW-Source: 2003-02/txt/msg00099.txt.bz2 Jim Blandy writes: > > Nick Roberts writes: > > My simple program prints out: > > > > a[0]=0 > > > > shouldn't that be: > > > > @"a[0]=0" > > MI doesn't yet capture all the output of the inferior; I mentioned > this in my first message. One approach is to use GDB's 'tty' command > to have the inferior run on a different tty than GDB itself. gdb-ui > can create a separate process buffer for the inferior's I/O, call > process-tty-name to get the name of its pseudo-tty, and then pass that > to GDB's 'tty' command. > > I've never done this myself, mind you. The last time I used the 'tty' > command was probably ten years ago or so, to debug Emacs redisplay > bugs. As I said, it works with SID and embedded targets running redboot.