From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28668 invoked by alias); 12 Jul 2005 11:41:30 -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 28641 invoked by uid 22791); 12 Jul 2005 11:41:25 -0000 Received: from lakermmtao08.cox.net (HELO lakermmtao08.cox.net) (68.230.240.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 12 Jul 2005 11:41:25 +0000 Received: from white ([68.9.64.121]) by lakermmtao08.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050712114123.DIYH13629.lakermmtao08.cox.net@white>; Tue, 12 Jul 2005 07:41:23 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1DsJ8d-0000U7-00; Tue, 12 Jul 2005 07:41:23 -0400 Date: Tue, 12 Jul 2005 11:41:00 -0000 From: Bob Rossi To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: show inferior-tty Message-ID: <20050712114123.GB1211@white> Mail-Followup-To: Nick Roberts , gdb@sources.redhat.com References: <17105.54757.46681.109597@farnswood.snap.net.nz> <20050711033228.GB27734@white> <17107.9757.580362.912687@farnswood.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17107.9757.580362.912687@farnswood.snap.net.nz> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-07/txt/msg00133.txt.bz2 On Tue, Jul 12, 2005 at 02:08:29PM +1200, Nick Roberts wrote: > > > 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. > > What has worked like this for years? "show inferior-tty" is new isn't it? Sorry for the lack of information. The "inferior-tty" is simply a better "tty" command. The tty command has had this documentation, (gdb) help tty Set terminal for future runs of program being debugged. > The phrase "of program being debugged" seems redundant to me (what other > possibilities are there?). It might be even more clear to say: > > Default terminal for future runs is "/dev/pts/1". > > since the redirection overrides this. I like your suggestion. There is still 1 ambiguity though. Is the "Default terminal for future runs" for GDB's I/O? or for the inferior's I/O? I think this question is why the phrase "program being debugged" is used. I would be more than happy to update the documentation to be more clear. I certainly know that what's clear to me, usually isn't to the rest of the world :) Bob Rossi