From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8860 invoked by alias); 11 Jul 2005 13:10:37 -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 8848 invoked by uid 22791); 11 Jul 2005 13:10:34 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 11 Jul 2005 13:10:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1Dry3M-0006la-RL; Mon, 11 Jul 2005 09:10:32 -0400 Date: Mon, 11 Jul 2005 13:10:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Cc: Nick Roberts Subject: Re: show inferior-tty Message-ID: <20050711131032.GC25755@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com, Nick Roberts References: <17105.54757.46681.109597@farnswood.snap.net.nz> <20050711033228.GB27734@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050711033228.GB27734@white> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00109.txt.bz2 On Sun, Jul 10, 2005 at 11:32:29PM -0400, Bob Rossi wrote: > > 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. Yes. I asked Bob to do this. The set of values accessible by -gdb-set is not documented in the MI section of the manual; we generally treat them as part of the CLI. The example for -gdb-set shows $foo, which is a convenience or "internal" variable, not a setting [although the example for -gdb-show does show annotate...]. I don't think incorporating the values controllable by -gdb-set in a stable interface is a good idea for compatibility. -- Daniel Jacobowitz CodeSourcery, LLC