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, doc RFA] New option -B: simplify running gdb from build directory


On Mon, Mar 24, 2014 at 6:02 PM, Doug Evans <dje@google.com> wrote:
> I just want to stop having to type --data-directory all the time when
> I run gdb under gdb in emacs (without doing hacks like having a
> special emacs command just for debugging gdb).  It's unlikely ISTM the
> community is going to agree on a heuristic for determining whether gdb
> is being run from the build directory any time soon, so let's just let
> it go for now.  Typing "./gdb -B" is fine by me.  I can think of
> alternatives (eg., name the binary in the build directory as xgdb and
> have gdb check argv[0]) but I prefer -B.

Hah!  Gotta love the crystalization of thinking that happens after one
clicks Send.

For the moment running from the build directory only requires passing
--data-directory.
I'm going to add a -D shortcut for --data-directory and make gdb
expand out relative paths for data-directory (it's kinda a bug that it
doesn't now).

That way I can type ./gdb -D .
which is good enough. :-)


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