From patchwork Fri Jun 6 08:12:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingjie Xing X-Patchwork-Id: 1346 Received: (qmail 24650 invoked by alias); 6 Jun 2014 08:13:01 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 24630 invoked by uid 89); 6 Jun 2014 08:13:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f181.google.com Received: from mail-ie0-f181.google.com (HELO mail-ie0-f181.google.com) (209.85.223.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 06 Jun 2014 08:12:59 +0000 Received: by mail-ie0-f181.google.com with SMTP id rp18so1913579iec.26 for ; Fri, 06 Jun 2014 01:12:57 -0700 (PDT) X-Received: by 10.50.43.138 with SMTP id w10mr3132177igl.36.1402042376745; Fri, 06 Jun 2014 01:12:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.20.169 with HTTP; Fri, 6 Jun 2014 01:12:35 -0700 (PDT) From: Mingjie Xing Date: Fri, 6 Jun 2014 16:12:35 +0800 Message-ID: Subject: [patch] Add -q in help info and doc To: gdb-patches@sourceware.org X-IsSubscribed: yes Hello, I notice that "-q" and "--silent" options are not mentioned in gdb's help information. This patch just adds them and updates the document. Besides, most options in gdb document are using "-" prefix instead of "--". ChangeLog * gdb.texinfo (Invoking GDB): Add -q and --quiet. * main.c (print_gdb_help): Add -q and --silent. Is it OK? Best regards, Mingjie diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 9f7fa18..a0fb66d 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -885,10 +885,11 @@ This will cause @code{@value{GDBP}} to debug @code{gcc}, and to set @code{gcc}'s command-line arguments (@pxref{Arguments}) to @samp{-O2 -c foo.c}. You can run @code{@value{GDBP}} without printing the front material, which describes -@value{GDBN}'s non-warranty, by specifying @code{-silent}: +@value{GDBN}'s non-warranty, by specifying @code{--silent} +(or @code{-q}/@code{--quiet}): @smallexample -@value{GDBP} -silent +@value{GDBP} --silent @end smallexample @noindent diff --git a/gdb/main.c b/gdb/main.c index a9fc378..108759d 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -1173,7 +1173,8 @@ Output and user interface control:\n\n\ fputs_unfiltered (_("\ --dbx DBX compatibility mode.\n\ --xdb XDB compatibility mode.\n\ - --quiet Do not print version number on startup.\n\n\ + -q, --quiet, --silent\n\ + Do not print version number on startup.\n\n\ "), stream); fputs_unfiltered (_("\ Operating modes:\n\n\