Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mingjie Xing <mingjie.xing@gmail.com>
To: gdb-patches@sourceware.org
Subject: [patch] Add -q in help info and doc
Date: Fri, 06 Jun 2014 08:13:00 -0000	[thread overview]
Message-ID: <CADNgcExxcG75mYskwGZGNcFHbPyzMA=5y3pAkAGBeeLKvMz2UQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

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

[-- Attachment #2: gdb-help-info.patch --]
[-- Type: text/x-patch, Size: 1154 bytes --]

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\

             reply	other threads:[~2014-06-06  8:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06  8:13 Mingjie Xing [this message]
2014-06-06  8:23 ` Eli Zaretskii
2014-06-06 10:26 ` Pedro Alves
2014-06-09  1:33   ` Mingjie Xing
2014-06-09  4:39     ` Sergio Durigan Junior
2014-06-09  9:33     ` Pedro Alves
2014-06-09  9:42       ` Mingjie Xing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADNgcExxcG75mYskwGZGNcFHbPyzMA=5y3pAkAGBeeLKvMz2UQ@mail.gmail.com' \
    --to=mingjie.xing@gmail.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox