This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Add system-gdbinit infrastructure
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 18 Dec 2012 17:47:41 +0100
- Subject: Re: [RFC] Add system-gdbinit infrastructure
- References: <1355846036-7645-1-git-send-email-brobecker@adacore.com>
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