From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27310 invoked by alias); 5 Feb 2003 07:23:13 -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 27197 invoked from network); 5 Feb 2003 07:23:11 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by 172.16.49.205 with SMTP; 5 Feb 2003 07:23:11 -0000 Received: from zenia.red-bean.com (localhost.localdomain [127.0.0.1]) by zenia.red-bean.com (8.12.5/8.12.5) with ESMTP id h157EK8A013662; Wed, 5 Feb 2003 02:14:20 -0500 Received: (from jimb@localhost) by zenia.red-bean.com (8.12.5/8.12.5/Submit) id h157EJXE013658; Wed, 5 Feb 2003 02:14:19 -0500 To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: Questions about GDB/MI References: <15936.19654.642542.951794@nick.uklinux.net> From: Jim Blandy Date: Wed, 05 Feb 2003 07:23:00 -0000 In-Reply-To: <15936.19654.642542.951794@nick.uklinux.net> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-02/txt/msg00096.txt.bz2 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.