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: Add support for --with-system-gdbinit


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


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