Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Stripped files
@ 2007-01-10  1:26 Stephen & Linda Smith
  2007-01-10  2:52 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen & Linda Smith @ 2007-01-10  1:26 UTC (permalink / raw)
  To: gdb

We've had a couple of discussions about stripped files here lately and 
so I want to know a couple of things from GDB's point of view.

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?

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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Stripped files
  2007-01-10  1:26 Stripped files Stephen & Linda Smith
@ 2007-01-10  2:52 ` Daniel Jacobowitz
  2007-01-10  4:45   ` Stephen & Linda Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-01-10  2:52 UTC (permalink / raw)
  To: Stephen & Linda Smith; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Stripped files
  2007-01-10  2:52 ` Daniel Jacobowitz
@ 2007-01-10  4:45   ` Stephen & Linda Smith
  2007-01-10 14:05     ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen & Linda Smith @ 2007-01-10  4:45 UTC (permalink / raw)
  To: Stephen & Linda Smith, gdb

Is there currently support for this in GDB both for the main executable 
and for any shared libraries (via the solib interface)?

Or does something need to be written?

sps

Daniel Jacobowitz wrote:
> 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.
>
>   


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Stripped files
  2007-01-10  4:45   ` Stephen & Linda Smith
@ 2007-01-10 14:05     ` Daniel Jacobowitz
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-01-10 14:05 UTC (permalink / raw)
  To: Stephen & Linda Smith; +Cc: gdb

On Tue, Jan 09, 2007 at 09:52:00PM -0700, Stephen & Linda Smith wrote:
> Is there currently support for this in GDB both for the main executable 
> and for any shared libraries (via the solib interface)?
> 
> Or does something need to be written?

It should already work.


-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-10 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-10  1:26 Stripped files Stephen & Linda Smith
2007-01-10  2:52 ` Daniel Jacobowitz
2007-01-10  4:45   ` Stephen & Linda Smith
2007-01-10 14:05     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox