From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14290 invoked by alias); 9 Apr 2013 19:26:29 -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 14278 invoked by uid 89); 9 Apr 2013 19:26:28 -0000 X-Spam-SWARE-Status: No, score=-6.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,TW_DB,TW_XD autolearn=ham version=3.3.1 Received: from mail-wi0-f181.google.com (HELO mail-wi0-f181.google.com) (209.85.212.181) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 09 Apr 2013 19:26:28 +0000 Received: by mail-wi0-f181.google.com with SMTP id hj8so4047844wib.2 for ; Tue, 09 Apr 2013 12:26:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=9RtVXnQaoUExAS1eMfl5AQW4Le7jqj76VXLnhaWr4nI=; b=RiSU1ww26k4UfTX5hyIVedAV3wZLkzuapPCK2RA40/uxS7TZDfWldvW6AtrTf1Wu8o RsS8wmty41CUqopUv7Y2Dz6VGwXqQK5KkSWdbP/SSIDTtnkV/+Ucy2fTjn3hDH5NBGDm KxmIqZsU7XYvHlSWtBUMryHtKknR0cUvz4acVwfC8nRqxpMKF8EsrE62WX+aUQ2xJr4M BSxZp/6cW+ZeiAG+jQVHmxofAwNSaWYknabhH3pbHF/lFOyXwvtmVEhd/IBuhwwt91QJ AJeOjKjnFtG73emhrUGgO2n+lgUM+lF4iY1pkgWvFdcXMckhkpfLttC6EiP3JT6RAbP6 XUvQ== MIME-Version: 1.0 X-Received: by 10.180.149.227 with SMTP id ud3mr26972607wib.0.1365535585561; Tue, 09 Apr 2013 12:26:25 -0700 (PDT) Received: by 10.194.39.163 with HTTP; Tue, 9 Apr 2013 12:26:25 -0700 (PDT) In-Reply-To: <51645982.8050904@redhat.com> 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> <51645982.8050904@redhat.com> Date: Wed, 10 Apr 2013 02:51:00 -0000 Message-ID: Subject: Re: [PATCH] Display configuration details in --help From: Doug Evans To: Pedro Alves Cc: Eli Zaretskii , Tom Tromey , Joel Brobecker , gdb-patches Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkBwHOs3sBaBPl8RJO6nvxFpaGEtFC4oQvJu5jXdgvJ/BEgb+1sRCeZlWxbV7sbuSRZzUzrWz06QMIDIta8WV7pZOIAqr8bS64WP8eNBrSAQ3xsx1qWm8CnpzJglFJtPynzNh7qcfHl7I60NQsyR1zQrTZRZEvhTfI3Wg2Gd+KzNYyIvSYV39INJUe8HbgYxD29jry6f/84femKYf8Ptv4oFb7DKw== X-SW-Source: 2013-04/txt/msg00255.txt.bz2 On Tue, Apr 9, 2013 at 11:10 AM, Pedro Alves wrote: >>> >>> --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". And --exec is a cousin of --se/--symbols but they're apart and in general alphabetical order. Unless there is a physical form to the grouping (e.g., further indentation, blank lines, or whatever), I'd much prefer a full alphabetical sort. > >>> --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). Wholesale reevaluation.