diff options
author | Tom Tromey <tom@tromey.com> | 2020-07-05 13:02:40 -0600 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-04-15 10:34:09 +0100 |
commit | 5809fbf2e289fc524d3086da62918876b66cefa8 (patch) | |
tree | 991a62f7b453e581a709e31f7d7365da9c979d4b /gdb/NEWS | |
parent | 92e4e97a9f569bf23b0f74479f32280c1f24cc6b (diff) | |
download | gdb-5809fbf2e289fc524d3086da62918876b66cefa8.zip gdb-5809fbf2e289fc524d3086da62918876b66cefa8.tar.gz 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/NEWS')
-rw-r--r-- | gdb/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -94,6 +94,13 @@ memory-tag set-allocation-tag ADDRESS LENGTH TAGS memory-tag check POINTER Validate that POINTER's logical tag matches the allocation tag. +set startup-quietly on|off +show startup-quietly + When 'on', this causes GDB to act as if "-silent" were passed on the + command line. This command needs to be added to an early + initialization file (e.g. ~/.config/gdb/gdbearlyinit) in order to + affect GDB. + * Changed commands break [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] |