How to fix solib path name?

Pedro Alves pedro@codesourcery.com
Wed Jul 8 16:19:00 GMT 2009


On Wednesday 08 July 2009 16:45:31, Danny Backx wrote:
> On Wed, 2009-07-08 at 17:31 +0200, Danny Backx wrote:
> > On Wed, 2009-07-08 at 16:07 +0100, Pedro Alves wrote:
> > > Maybe we can make gdbserver smarter even on CE < 6?  I think I
> > > remember that if you had toolhelp.dll on the device, you'd get
> > > absolute paths, but I'm not sure if that's a valid memory I have.
> > > 
> > 
> > I've added one printf statement to gdbserver/server.c just after where
> > it assembles the library name list.
> > 
> > Output on the infamous C++ hello2.exe below. Two out of the three are
> > absolute path names. Not sure why the other one isn't.
> > 
> > Is it best to adapt gdbserver for this ?
> 
> If the answer to my question is yes, then it's not a hard fix. It's
> attached.

No, that's the wrong direction.  Absolute paths are better.  I'd
rather we make a better effort at finding the pathname in the cases we
don't know them.

Losing information like this is never good.  At most, we could add a
knob to gdb to ignore the path information and look at the filename
only.

But, please, let's not go around and around, when I suggested "set sysroot"
several times already.  Did you actually try that?  Please do,
before posting more patches.

-- 
Pedro Alves



More information about the Gdb-patches mailing list