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: [PATCH] Also install data-directory into the build directory as computed by relocate_gdb_directory


On Sat, Oct 6, 2012 at 12:02 PM, Khoo Yit Phang <khooyp@cs.umd.edu> wrote:
> I prefer just installing data-directory into $BUILDDIR/share/data-directory, which is simple and works as long as gdb isn't configured with --bindir, --exec-prefix, and/or --with-gdb-datadir that are too unusual. It should cover most purposes of running gdb from the build directory, since I don't see much reason to change --bindir, --exec-prefix, and/or --with-gdb-datadir if gdb won't be installed, unless for testing those flags, in which case gdb will likely have to be installed anyways. Does anyone currently have a use case I'm missing?

I'm not entirely comfortable with having normal makes (as in "make
all") create files outside of its build directory (and by this I mean
$obj/gdb/../anything).  [And obviously I'm not including "make
install" here. :-)]
I'd prefer passing -bd (for build directory), for example.
[Not the best name choice since -b specifies the serial port baud
rate.  -bt for build tree, and -B are alternatives.]

I could also go with a configure option to create a second gdb binary
for use in the build tree.
I would never use it, but as long as those that want it agree to
maintain it, 'tis ok with me.
Neither the testsuite, nor anything else, can depend on it - it would
just be for developer convenience sake.


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