]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add "set startup-quietly" command
authorTom Tromey <tom@tromey.com>
Sun, 5 Jul 2020 19:02:40 +0000 (13:02 -0600)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 15 Apr 2021 09:34:09 +0000 (10:34 +0100)
commit5809fbf2e289fc524d3086da62918876b66cefa8
tree991a62f7b453e581a709e31f7d7365da9c979d4b
parent92e4e97a9f569bf23b0f74479f32280c1f24cc6b
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.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/main.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/early-init-file.exp
gdb/top.c
gdb/top.h