From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29597 invoked by alias); 19 Oct 2003 16:50:38 -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 29378 invoked from network); 19 Oct 2003 16:50:30 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.0.121) by sources.redhat.com with SMTP; 19 Oct 2003 16:50:30 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 703FF2B89 for ; Sun, 19 Oct 2003 12:50:26 -0400 (EDT) Message-ID: <3F92C0D2.6050807@gnu.org> Date: Sun, 19 Oct 2003 16:50:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: GDB's command qualifier character is `/' Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00217.txt.bz2 This seems to keep comming up, sigh! 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"?). In fact, in the case of all these specific commands (including "info break/l") trying to switch to UNIX's option syntax vis: x --i would be a disaster! What's unfortunate in all this is that the current CLI code doesn't directly parse the qualifier convention. For instance: (gdb) x x/i x/b x/8 x/4 and (gdb) load/vma /lma (load, using vma addresses, the file "/lma"). If the command doesn't involve files, though, I can't think of a reason for not using the `/' qualifier. If it does involve files, then I guess the work needed to add the qualifier will need to include modifing the cli. Note that this doesn't address "parameterized qualifiers" (tar/dump convention?) and "qualified parameters" (not allowed?). enjoy, Andrew (1) Personally, I'm always using the `/' qualifier, but I can't remember when, if ever, I used one of the UNIX style command options.