stepping into a shared object
Kevin Buettner
kevinb@redhat.com
Thu May 16 15:48:00 GMT 2002
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
More information about the Gdb
mailing list