From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6170 invoked by alias); 23 Mar 2008 04:56:40 -0000 Received: (qmail 6156 invoked by uid 22791); 23 Mar 2008 04:56:39 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 23 Mar 2008 04:56:04 +0000 Received: from kahikatea.snap.net.nz (165.60.255.123.dynamic.snap.net.nz [123.255.60.165]) by viper.snap.net.nz (Postfix) with ESMTP id 60FC73DA4E2; Sun, 23 Mar 2008 17:55:57 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id F2DD58FC6D; Sun, 23 Mar 2008 16:55:55 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18405.58075.425704.501844@kahikatea.snap.net.nz> Date: Sun, 23 Mar 2008 04:56:00 -0000 To: Daniel Jacobowitz Cc: Vladimir Prus , gdb-patches@sources.redhat.com, Eli Zaretskii Subject: Re: [RFA] Implement -thread-info. In-Reply-To: <20080226005822.GA3346@caradoc.them.org> References: <200802171833.26673.vladimir@codesourcery.com> <200802181038.04497.vladimir@codesourcery.com> <18361.64577.771676.184618@kahikatea.snap.net.nz> <200802201427.36288.vladimir@codesourcery.com> <18371.25340.162317.39030@kahikatea.snap.net.nz> <20080226005822.GA3346@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 22.1.92.2 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00337.txt.bz2 Daniel Jacobowitz writes: > On Tue, Feb 26, 2008 at 01:53:16PM +1300, Nick Roberts wrote: > > + { "thread-info", { "info threads", 1 }, NULL, NULL }, > > I would suggest against using args_p == 1 for any new commands. The > quoting rules between CLI and MI are different; we ignore that for > some commands, but it's a bug and it bites frontend developers. > > If the arguments are just going to be integers then it doesn't make > much difference but it will make things simpler if we want to add > either quoted arguments or dashed options later. With non-stop mode there will presumably be many new MI commands. Providing the same functionality in CLI duplicates a lot of effort. Perhaps the parsing of MI and CLI arguments should be unified. -- Nick http://www.inet.net.nz/~nickrob