From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8736 invoked by alias); 20 Oct 2003 21:54:34 -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 8600 invoked from network); 20 Oct 2003 21:54:33 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 20 Oct 2003 21:54:33 -0000 Received: by zenia.home (Postfix, from userid 5433) id C4C5020766; Mon, 20 Oct 2003 16:54:31 -0500 (EST) To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: GDB's command qualifier character is `/' References: <3F92C0D2.6050807@gnu.org> From: Jim Blandy Date: Mon, 20 Oct 2003 21:54:00 -0000 In-Reply-To: <3F92C0D2.6050807@gnu.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-10/txt/msg00225.txt.bz2 Andrew Cagney writes: > GDB's CLI, long ago established `/' as its command qualifier character vis: > > x/i > display/i > print/x > > GDB's user base is very familar with this syntax(1) so adding new > qualfiers using this syntax would provide a consistent user experience > (if there is x/i, how come there isn't "info break/l"?). I think / is only for format specifiers, not a general-purpose command qualifier thing. It seems to me that GDB has tended to use words for command qualifiers, like: break foo if x == 10 break foo thread 4 `append [binary] memory FILENAME START_ADDR END_ADDR' `append [binary] value FILENAME EXPR' We do have some existing examples of Unix-like command options: `symbol-file FILENAME [ -readnow ] [ -mapped ]' `file FILENAME [ -readnow ] [ -mapped ]' `add-symbol-file FILENAME ADDRESS' `add-symbol-file FILENAME ADDRESS [ -readnow ] [ -mapped ]' `add-symbol-file FILENAME -sSECTION ADDRESS ...' I'd love to see discussion about how to pull these things together a bit more, but I think it's difficult to argue that there is a consistent rule in place already.