Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* debug dynamically linked modules..
@ 2003-10-16 19:39 Jack J
  2003-10-16 19:44 ` Daniel Jacobowitz
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jack J @ 2003-10-16 19:39 UTC (permalink / raw)
  To: gdb

Hi,

I would like to know how to debug using gdb
(set breakpoint on routine, etc.) a dynmically linked,
relocated code.

The platform is RH Linux 9.0. There is some
application
module compiled with -fPIC and -shared, and
-export-dynamic options.  
A global structure containing functions is exported by
the DLL module.
The problem: I would like to set breakpoint on one
of the (file static) functions contained in this
structure.

From mainline code after call to dlsym(..) (to the
global structure), I try to set break point, and I
get error: "Function xxx not defined.".

I do 'info shared' on gdb and do see the file being
loaded. Also I do see that "-g" option to add
debug symbols in gcc.

Is there anything I am missing ? How does one 
normally use gdb in such scenario ?

Any tips, pointers/hints is appreciated.

Thanks,


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


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

end of thread, other threads:[~2003-10-17  7:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-16 19:39 debug dynamically linked modules Jack J
2003-10-16 19:44 ` Daniel Jacobowitz
2003-10-16 20:24 ` Jesse Marlin
2003-10-17  0:11   ` Jack J
2003-10-17  7:11 ` Izo

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