Re: [PATCHv3 3/3] gdb: add "set startup-quietly" command

Eli Zaretskii via Gdb-patches
2021-02-18T17:32:24Z

> From: Andrew Burgess <andrew.burgess@embecosm.com>
> Date: Thu, 18 Feb 2021 16:41:04 +0000
> Cc: Tom Tromey <tom@tromey.com>
>
> 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.

The documentation parts are okay, except that...

> +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. ^^^^^^^^^^^^
> [...]
> +Set whether GDB should start up quietly."), _(" \
> +Show whether GDB should start up quietly."), _("\
> +This setting will not affect the current session. Instead this command\n\
> +should be added to the .gdbstartup file in the users home directory to\n\
^^^^^^^^^^^

...there seems to be a disagreement regarding the name of that early
initialization file.