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 2/2] Try to initialize data-directory by first searching for "data-directory" in the same directory as the gdb binary


> > 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.
> 
> Oh, I missed this, the way it works with either patch, the build
> data-directory is *not* a fallback, it *overrides* the standard
> data-directory. That's the only way it can work if the standard
> data-directory exists and is out of date.

Overriding would actually work better for me, but I didn't realize that
this was what was discussed. I can live with either approaches, as
either have pros and cons, depending on the situation that a developer
might face. Personally, the debuggers I work on are never installed,
so having it be a fallback would be just find.

Alternatively, we could think of having a routine that detects that
the GDB binary is uninstalled, and relocate all the various directories
differently. But that might be a bigger change that you'd want to, and
I'm not sure this is something that the community might want (because
it would add useless code for most users, only used by developers).

-- 
Joel


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