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.
This commit is contained in:
parent
92e4e97a9f
commit
5809fbf2e2
9 changed files with 117 additions and 0 deletions
|
@ -1053,6 +1053,11 @@ captured_main_1 (struct captured_main_args *context)
|
|||
execute_cmdargs (&cmdarg_vec, CMDARG_EARLYINIT_FILE,
|
||||
CMDARG_EARLYINIT_COMMAND, &ret);
|
||||
|
||||
/* Recheck if we're starting up quietly after processing the startup
|
||||
scripts and commands. */
|
||||
if (!quiet)
|
||||
quiet = check_quiet_mode ();
|
||||
|
||||
/* Now that gdb_init has created the initial inferior, we're in
|
||||
position to set args for that inferior. */
|
||||
if (set_args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue