This is the mail archive of the gdb@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: Stripped files


On Tue, Jan 09, 2007 at 06:33:10PM -0700, Stephen & Linda Smith wrote:
> Am I breaking any assumptions in the GDB code if the code running on a 
> remote target is stripped and the code that GDB loads on the host has 
> the symbolic information?  In other words is GDB likely to get confused 
> by this situation?

No, this is normal.

> If the situation in the above paragraph isn't a problem, would it be a 
> good idea for GDB to sniff for the file with the symbolic information 
> via an default extension.  For example the file that would be on the 
> remote target would be something like libfoo.so and the file that that 
> gdb would look for first on the host system would be 
> libfoo.so-withsymbols and then fi that didn't exist it would look for 
> libfoo.so.
> 
> What do you think of that?

The solution we've used for this before is .gnu_debuglink (see the GDB
and binutils manuals for more about that).  You can also use
sysroot / solib-search-path if the debug symbol file has the same name as the
target file.

-- 
Daniel Jacobowitz
CodeSourcery


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