This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Should "dir" override the full path encoded in debug info?
On Sat, Jun 24, 2006 at 12:51:43AM -0700, Joel Brobecker wrote:
> > Then I think this is by design: GDB gives preference to existing files
> > in the default places.
>
> That's fine. But then how do you explain that when you compile
> differently GDB now finds the files in the new location, despite
> the fact that the files in the original location are still present
> (and the debugging info contains the path to the original files)?
> Isn't that inconsistent?
I think that's a bug, but the fix for the bug won't make you any
happier - if told to fix it, I'd probably make the compilation
directory be searched first. But don't quote me on that; I haven't
looked at this code in a while (I have another bug to fix in it but it
takes me so long to re-internalize how it works that I haven't done it
yet).
--
Daniel Jacobowitz
CodeSourcery