aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-07-05 13:02:40 -0600
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-04-15 10:34:09 +0100
commit5809fbf2e289fc524d3086da62918876b66cefa8 (patch)
tree991a62f7b453e581a709e31f7d7365da9c979d4b /gdb/doc
parent92e4e97a9f569bf23b0f74479f32280c1f24cc6b (diff)
downloadfsf-binutils-gdb-5809fbf2e289fc524d3086da62918876b66cefa8.zip
fsf-binutils-gdb-5809fbf2e289fc524d3086da62918876b66cefa8.tar.gz
fsf-binutils-gdb-5809fbf2e289fc524d3086da62918876b66cefa8.tar.bz2
gdb: add "set startup-quietly" command
This adds a new command to change GDB to behave as though "-quiet" were always given. This new command can be added to the gdbearlyinit file to affect future GDB sessions. gdb/ChangeLog: * NEWS: Add entry. * main.c (captured_main_1): Call check_quiet_mode. * top.c (startup_quiet): New global. (check_quiet_mode): New function. (show_startup_quiet): New function. (init_main): Register new command. * top.h (check_quiet_mode): Declare. gdb/doc/ChangeLog: * gdb.texinfo (Mode Options): Mention "set startup-quietly". gdb/testsuite/ChangeLog: * gdb.base/startup-file.exp: Add more tests.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo8
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index b27bd18..32801bf 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-15 Tom Tromey <tom@tromey.com>
+ Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.texinfo (Mode Options): Mention "set startup-quietly".
+
2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
PR cli/25956
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 4351378..d13cbda 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1112,6 +1112,14 @@ are still loaded.
``Quiet''. Do not print the introductory and copyright messages. These
messages are also suppressed in batch mode.
+@kindex set startup-quietly
+@kindex show startup-quietly
+This can also be enabled using @code{set startup-quietly on}. The
+default is @code{off}. Use @code{show startup-quietly} to see the
+current setting. Place @code{set startup-quietly on} into your early
+initialization file (@pxref{Initialization Files,,Initialization
+Files}) to have future @value{GDBN} sessions startup quietly.
+
@item -batch
@cindex @code{--batch}
Run in batch mode. Exit with status @code{0} after processing all the