From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5280 invoked by alias); 11 Jul 2005 03:32:44 -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 5263 invoked by uid 22791); 11 Jul 2005 03:32:41 -0000 Received: from lakermmtao01.cox.net (HELO lakermmtao01.cox.net) (68.230.240.38) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 11 Jul 2005 03:32:41 +0000 Received: from white ([68.9.64.121]) by lakermmtao01.cox.net (InterMail vM.6.01.05.00 201-2131-123-20050610) with ESMTP id <20050711033227.PYJD15315.lakermmtao01.cox.net@white>; Sun, 10 Jul 2005 23:32:27 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1Drp1x-000892-00; Sun, 10 Jul 2005 23:32:29 -0400 Date: Mon, 11 Jul 2005 03:32:00 -0000 From: Bob Rossi To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: show inferior-tty Message-ID: <20050711033228.GB27734@white> Mail-Followup-To: Nick Roberts , gdb@sources.redhat.com References: <17105.54757.46681.109597@farnswood.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17105.54757.46681.109597@farnswood.snap.net.nz> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-07/txt/msg00095.txt.bz2 On Mon, Jul 11, 2005 at 02:13:57PM +1200, Nick Roberts wrote: > > Firstly a doc error (GDB/MI -inferior-tty-show): > > The corresponding GDB command is `show inferior-tty /dev/pts/1'. > > should presumably read: > > The corresponding GDB command is `show inferior-tty'. OK, this looks like a good change. I'll also make this. > Secondly, if I don't set the tty, I get: > > (gdb) show inferior-tty > Terminal for future runs of program being debugged is "". > > I think that it should still display a value. Also perhaps it could just > say e.g > > Terminal for future runs is "/dev/pts/1". Well, I think this is just preference. GDB has worked like this for years. I don't mind it the way it is, but if others want it changed, that's fine too. > With MI, if I don't set the tty, I get: > > (gdb) > -inferior-tty-show > ^done > (gdb) > > Even if its still considered inappropriate to give a value in this case, I > think it should give a value e.g. > > (gdb) > -inferior-tty-show > ^done,inferior_tty_terminal="" > (gdb) This sounds reasonable. > Incidentally, I don't see the need for this MI command or -inferior-tty-set > because: > > (gdb) > -gdb-set inferior-tty /dev/pts/1 > ^done > (gdb) > -gdb-show inferior-tty > ^done,value="/dev/pts/1" > (gdb) I was told that it would be a good idea not to bring/use the set/show variables in GDB/MI. Although, I could have misunderstood the advice given to me. Bob Rossi