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

Joel Brobecker brobecker@adacore.com
Mon Sep 24 14:59:00 GMT 2012


> How about this solution, instead of patching the gdb binary, I can
> install a shell script into the build directory that contains:

In addition to Eli's comments, a shell script isn't debuggable.

I know we are walking on thin ice with this data-directory issue,
but I think it's worth our trouble in this case. The side-effect
of your _gdb patch is something that's really important to me;
that's why I am pushing a little harder than usual.

As far as I could tell, Jan and yourself were discussing two patches
that should work. You like neither of them, but short of having
a solution that either of you likes, why not just commit one of them?
As long as we take the build data-directory as a fallback over a non-
existant standard (configured/possibly relocated) data-directory,
I don't see a problem.

-- 
Joel



More information about the Gdb-patches mailing list