[PATCHv2 0/3] Adding startup files to GDB

Andrew Burgess
2021-01-26T09:48:31Z

This series is a revised version of this series:

https://sourceware.org/pipermail/gdb-patches/2020-October/172422.html

Which in turn draws heavily from work done by Tom:

https://sourceware.org/pipermail/gdb-patches/2020-June/169821.html

The biggest change from the original series is the removal of
everything related to auto-saving of startup options. The removal
doesn't mean this feature couldn't be added back in the future, but it
felt like that was a separate piece of work from the core idea of
adding a mechanism to control how GDB starts up.

I also simplified the startup file look up, startup files can now only
appear in the users home directory (following GDB's usual home
directory lookup logic).

All feedback welcome.

Thanks,
Andrew

---

Andrew Burgess (2):
gdb: refactor the initialization file lookup code
gdb: process startup files and startup command line options

Tom Tromey (1):
gdb: add "set startup-quietly" command

gdb/ChangeLog | 33 +++
gdb/NEWS | 18 ++
gdb/config.in | 3 +
gdb/configure | 6 +
gdb/configure.ac | 3 +
gdb/doc/ChangeLog | 14 ++
gdb/doc/gdb.texinfo | 120 ++++++++++-
gdb/main.c | 257 ++++++++++++++++++------
gdb/testsuite/ChangeLog | 11 +
gdb/testsuite/gdb.base/startup-file.c | 22 ++
gdb/testsuite/gdb.base/startup-file.exp | 149 ++++++++++++++
gdb/testsuite/lib/gdb-utils.exp | 1 +
gdb/top.c | 33 +++
gdb/top.h | 5 +
14 files changed, 602 insertions(+), 73 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/startup-file.c
create mode 100644 gdb/testsuite/gdb.base/startup-file.exp

--
2.25.4