[RFC] New option -B: simplify running gdb from build directory

Eli Zaretskii eliz@gnu.org
Fri Dec 27 20:15:00 GMT 2013


> From: Doug Evans <dje@google.com>
> Date: Fri, 27 Dec 2013 11:42:29 -0800
> 
> The "make run" Makefile rule simplifies running gdb from the shell,
> but it doesn't simplify running gdb from gdb: I'm always typing
> "--data-directory=$(pwd)/data-directory".
> And since we can't agree on a way to let gdb auto-detect being run
> from the build directory, how about this?

Thanks.

However, if we cannot agree on the above, why would adding a new
option facilitate agreement?

Personally, this way of solving the issue makes little sense to me: if
I need to specify a special option to GDB, I can be expected to
specify --data-directory explicitly.



More information about the Gdb-patches mailing list