This is the mail archive of the gdb@sources.redhat.com 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: stepping into a shared object


On May 16,  3:22pm, Ed Harcourt wrote:

> I have a main.c compiled using the Solaris C compiler (not C++). Version is 
> Sun WorkShop 6 update 1 C 5.2 2000/09/11.
> 
> I have C++ objects built using g++ 2.95.2. Everything built with -g. An 
> entry function f is extern "C".
> 
> I linked the C++ objects and created a mylib.so using the Solaris linker ld.
> 
> main does a dlopen to get at the mylib.so. I can't step into f from main.
> 
> Sound familiar? Or should this work?

It should work.

Here are some things to try:

 1) After the library is dlopen'd, are you able to place a breakpoint
    in the shared library and continue to the breakpoint?

 2) Are you able to step into other types of shared libraries (i.e,
    ones that aren't dlopen'd?

(This won't directly solve your problem, but knowing the answers might
help us to figure out what's going wrong.)

Kevin


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