From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19000 invoked by alias); 9 Apr 2013 18:41:18 -0000 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 Received: (qmail 18988 invoked by uid 89); 9 Apr 2013 18:41:17 -0000 X-Spam-SWARE-Status: No, score=-8.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_DB,TW_XD autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 09 Apr 2013 18:41:17 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r39IAFFM029949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 9 Apr 2013 14:10:15 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r39IABuv005408; Tue, 9 Apr 2013 14:10:11 -0400 Message-ID: <51645982.8050904@redhat.com> Date: Wed, 10 Apr 2013 00:12:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Doug Evans CC: Eli Zaretskii , Tom Tromey , Joel Brobecker , gdb-patches Subject: Re: [PATCH] Display configuration details in --help References: <83r4jaynqq.fsf@gnu.org> <514B4AC3.1090103@redhat.com> <83zjxwy4ux.fsf@gnu.org> <20130321191051.GF5447@adacore.com> <83r4j8y1kh.fsf@gnu.org> <20130321203919.GG5447@adacore.com> <87r4j8zd0k.fsf@fleche.redhat.com> <83ehf85u7x.fsf@gnu.org> <83wqsbadfe.fsf@gnu.org> <20836.17485.525118.795474@ruffy2.mtv.corp.google.com> <83txnfa9m7.fsf@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-04/txt/msg00252.txt.bz2 On 04/09/2013 06:53 PM, Doug Evans wrote: > On Tue, Apr 9, 2013 at 10:37 AM, Eli Zaretskii wrote: >>> > fputs_unfiltered (_("\ >>> > --version Print version information and then exit.\n\ >>> > + --configuration Print details about GDB configuration and then exit.\n\ >>> > -w Use a window interface.\n\ >>> > --write Set writing into executable and core files.\n\ >>> > --xdb XDB compatibility mode.\n\ >>> >>> The options here are (mostly) sorted alphabetically. >> >> Except where they aren't: There's a pattern. >> >> --args Arguments after executable-file are passed to inferior >> -b BAUDRATE Set serial port baud rate used for remote debugging. >> --batch Exit after processing options. >> --batch-silent As for --batch, but suppress all gdb stdout output. >> >>> --return-child-result Related to --batch. >> GDB exit code will be the child's exit code. >> --cd=DIR Change current directory to DIR. >> --command=FILE, -x Execute GDB commands from FILE. >> >>> --eval-command=COMMAND, -ex >> Execute a single GDB command. >> May be used multiple times and in conjunction >> with --command. >> >>> --init-command=FILE, -ix Like -x but execute it before loading inferior. >> >>> --init-eval-command=COMMAND, -iex Like -ex but before loading inferior. All these are related to --command. >> >>> --core=COREFILE Analyze the core dump COREFILE. Remove the ones above related to --command, and this one's actually in place. >> >>> --pid=PID Attach to running process PID. --pid is kind of a cousin of --core, due to how BAR is handled in "gdb FOO BAR". >> --dbx DBX compatibility mode. >> --directory=DIR Search for source files in DIR. >> --epoch Output information used by epoch emacs-GDB interface. >> --exec=EXECFILE Use EXECFILE as the executable. >> --fullname Output information used by emacs-GDB interface. >> --help Print this message. >> --interpreter=INTERP >> Select a specific interpreter / user interface >> -l TIMEOUT Set timeout in seconds for remote debugging. >> --nw Do not use a window interface. >> --nx Do not read .gdbinit file. >> --quiet Do not print version number on startup. >> --readnow Fully read symbol files on first access. >> --se=FILE Use FILE as symbol file and executable file. >> --symbols=SYMFILE Read symbols from SYMFILE. >> --tty=TTY Use TTY for input/output by the program being debugged. >> --version Print version information and then exit. >> -w Use a window interface. >> --write Set writing into executable and core files. >> --xdb XDB compatibility mode. >> >> Again, I'm not really wedded to the place where I inserted the new >> option, but please tell me near which 'c' option to put it instead ;-). > > Right after --command works for me. So if you imagine a right indent in the grouped options, the list is actually sorted, so that'd break the existing logic. I'd suggest either right after --version; right after --help; right before --core, or a wholesale reevaluation of the current grouping (either sort all alphabetically, or break "Options:" into groups). -- Pedro Alves