Re: [PATCH 2/2] Try to initialize data-directory by first searching for "data-directory" in the same directory as the gdb binary

Joel Brobecker
2012-09-24T17:04:11Z

> Here's yet another alternative: gdb already tries to locate
> data-directory in $BUILDDIR/share/gdb as part of the relocation logic;
> we can install a symlink there that points to
> $BUILDDIR/gdb/data-directory, or make a copy for platforms that don't
> support symlinks.

Sounds like an interesting idea. We could even do a local install
of the share directory with $BUILDDIR as the prefix, to avoid
duplicating the code, if that helps. But people might complain that
this steps is unnecessary for those who always do an install after
build. I think it's sufficiently negligible to be OK, personally.

--
Joel