This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Add system-gdbinit infrastructure


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]