This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: stepping into a shared object
- From: Kevin Buettner <kevinb at redhat dot com>
- To: "Ed Harcourt" <shmooga at hotmail dot com>, gdb at sources dot redhat dot com
- Date: Thu, 16 May 2002 15:47:52 -0700
- Subject: Re: stepping into a shared object
- References: <F169xw8Zw5V6QcqnWwA00003938@hotmail.com>
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