[RFC] Add system-gdbinit infrastructure

Jan Kratochvil jan.kratochvil@redhat.com
Tue Dec 18 16:48:00 GMT 2012


Hi Joel,

--with-system-gdbinit is used to enable something like for example Fedora uses
/etc/gdbinit.  But this provides only a single init file which is a problem
for various optionally installed packages each needing to install its own
system-wide gdb init file (such as older versions of the gdb-heap package).

Unfortunately GDB does not support wildcards for the "source" command for:
/etc/gdbinit:
	source /etc/gdbinit.d/*
which is why only a single file is possible that way.

But I do not see this problem solved in your patch, how do you execute those
files?

Besides that I find such files more as configuration files where read-only
$(GDB_DATADIR) is not a suitable location.

But maybe we both talk about two unrelated features.


Regards,
Jan



More information about the Gdb-patches mailing list