This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Add support for --with-system-gdbinit
- From: Daniel Jacobowitz <drow at false dot org>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org, guitton at adacore dot com
- Date: Wed, 14 Jan 2009 14:49:22 -0500
- Subject: Re: Add support for --with-system-gdbinit
- References: <20090114135619.GA24456@caradoc.them.org> <uiqohwuek.fsf@gnu.org>
On Wed, Jan 14, 2009 at 09:37:55PM +0200, Eli Zaretskii wrote:
> > The path will be automatically relocated if the GDB binary is moved,
> > so it can be used for a system-wide directory like /etc or a
> > prefixed directory like /opt/vendor/share.
>
> Sorry, I don't understand: what does this mean? How does one
> ``relocate a path''?
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. We use the same algorithm for set
debug-file-directory and set sysroot.
> That's it! We don't tell what is the name of the file, we don't tell
> how to find it, we just tell it _might_ exist and it _might_ be read
> by GDB at startup. That doesn't sound very user-friendly to me.
> Contrast that with what the Emacs manual says about site-start.el,
> which AFAIU has a similar purpose.
>
> Am I missing something?
There isn't a standard name. It's just whatever is given to the
configure option. Do you think it should have a standard name?
I definitely need the ability to change the name via configure.
Having --help print it out sounds wise to me.
--
Daniel Jacobowitz
CodeSourcery