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

Khoo Yit Phang khooyp@cs.umd.edu
Mon Sep 24 15:27:00 GMT 2012


Hi,

On Sep 24, 2012, at 11:00 AM, Khoo Yit Phang wrote:

> On Sep 24, 2012, at 10:51 AM, Eli Zaretskii wrote:
> 
>>> From: Khoo Yit Phang <khooyp@cs.umd.edu>
>> 
>> First, running gdb on gdb is an important use case.
> 
> Yes, and instead of running "gdb gdb/gdb", you'd run "gdb gdb/gdb-the-real-binary", which I think is trivial for GDB developers.
> 
>> Second, there are systems (like MS-Windows) which cannot run Unix
>> shell scripts natively.
> 
> That's easy to fix, write the redirector as a C program and compile it at the same time gdb-the-real-binary is compiled.

Come to think of it, with GDB's follow-exec-mode, making the redirector a C program installed as "gdb/gdb" that exec's "gdb/gdb-the-real-binary" should also allow running "gdb gdb/gdb" to work, shouldn't it?

Yit
September 24, 2012



More information about the Gdb-patches mailing list