aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorxmj <mingjie.xing@gmail.com>2014-06-06 17:28:19 +0800
committerxmj <mingjie.xing@gmail.com>2014-06-06 17:28:19 +0800
commitadcc0a31ccb1b75debc778fdedb351321375e0bf (patch)
tree25001e249604c597ff90bfe80bc2787cc233e277 /gdb
parent831517df13fe99c89f073632b70431510bee65ba (diff)
downloadgdb-adcc0a31ccb1b75debc778fdedb351321375e0bf.zip
gdb-adcc0a31ccb1b75debc778fdedb351321375e0bf.tar.gz
gdb-adcc0a31ccb1b75debc778fdedb351321375e0bf.tar.bz2
add -q in help info and doc
Diffstat (limited to 'gdb')
-rw-r--r--gdb/doc/gdb.texinfo5
-rw-r--r--gdb/main.c3
2 files changed, 5 insertions, 3 deletions
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\