This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Add support for --with-system-gdbinit
On Wed, Jan 14, 2009 at 10:21:34PM +0200, Eli Zaretskii wrote:
> > If you configure GDB using --prefix=$prefix
> > --with-system-gdbinit=$prefix/etc/gdbinit, then a GDB installed in
> > $prefix/bin will load $prefix/etc/gdbinit at startup. If the tree
> > is copied to /other/prefix, then GDB will load
> > /other/prefix/etc/gdbinit.
>
> If GDB can detect the right prefix for the system-wide gdbinit file,
> why does it need to be configured for a specific place ($prefix/etc)
> to begin with?
I'm sorry, I don't understand your question - could you explain?
As currently implemented there is no standard location. We don't put
it in /etc here; we use "$prefix/$host/$target/lib/gdbinit" in case
you have a lot of different configurations installed in the same
place. I didn't pick a naming policy since the default is the same
as it was before; no global init file.
--
Daniel Jacobowitz
CodeSourcery