Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How do you debug a shared library if the main app is compiled without debug?
@ 2004-04-01 10:16 Richard Tierney
  2004-04-01 14:22 ` Jim Blandy
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Tierney @ 2004-04-01 10:16 UTC (permalink / raw)
  To: gdb

I've written a shared library (ELF/.so), with debug enabled, which is 
called from a commercial package. I don't have sources for the other 
vendor's code, and it was (I think) compiled without debug info.

Question: can I use gdb to debug my own code in this environment? If I 
set 'file' to the name of the vendor's executable then I get a message 
about there being no symbols. I've tried setting breakpoints in my own 
code, using a function name or a file and a line number, and then 
running the main app. I had assumed that the breakpoints would be set 
when my code is loaded, but this isn't happening - I get a warning about 
not being able to insert a breakpoint, and a memory access error.

Any ideas? I'm on Linux and gdb 6.0.

TIA

Rick


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

end of thread, other threads:[~2004-04-01 21:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-01 10:16 How do you debug a shared library if the main app is compiled without debug? Richard Tierney
2004-04-01 14:22 ` Jim Blandy
2004-04-01 21:36   ` Richard Tierney

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