From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21292 invoked by alias); 11 Jul 2005 21:28:40 -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 21274 invoked by uid 22791); 11 Jul 2005 21:28:37 -0000 Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 11 Jul 2005 21:28:37 +0000 Received: from farnswood.snap.net.nz (p66-tnt2.snap.net.nz [202.124.108.66]) by viper.snap.net.nz (Postfix) with ESMTP id CAB215E0AE3; Tue, 12 Jul 2005 09:28:33 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 6B5E462A99; Mon, 11 Jul 2005 22:29:44 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17106.58567.662569.830805@farnswood.snap.net.nz> Date: Mon, 11 Jul 2005 21:28:00 -0000 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: show inferior-tty In-Reply-To: <20050711131032.GC25755@nevyn.them.org> References: <17105.54757.46681.109597@farnswood.snap.net.nz> <20050711033228.GB27734@white> <20050711131032.GC25755@nevyn.them.org> X-SW-Source: 2005-07/txt/msg00131.txt.bz2 > 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. Other MI commands, notably those used for program control exec-run, exec-next etc, also implemented through CLI commands (although they are called in a different way). I'm not sure where -gdb-set would fail (asynchronous operation?). If its not a good idea to use -gdb-set, perhaps it should be removed or, at least, a note added to the manual as Konstantin Karganov suggested. Alternatively, perhaps it could be implemented so that it doesn't use CLI (like -inferior-tty-set?) It seems wasteful to implement a separate MI command for each show subcommand. Nick