Questions about debugging in shared library

Questions about debugging in shared library

Post by Nong F » Fri, 13 Feb 1998 04:00:00



I am using gdb to debug my executable which is linked to a shared
library.

Having set a break point at a function in the shared library, I run
the executable and gdb shows the message:
        "cannot insert breakpoint
         Temporarily disabled breakpoint in shared library"

And gdb stops at the end of the function.

Here is how I created the shared library and executable:

gcc -g -c -fPIC foo.c                  
gcc -shared -o libfoo.so.1.0 foo.o      
gcc -o main main.c -L. -lfoo

Thanks for any hints!

 
 
 

1. Will strip(debug shared library) == nodebug shared library ?

compiling the C++ code without debug option to produce object
files(.o) and then producing the shared library with them. Say, the
size of this library is SIZE_SO_NoD.

compiling the C++ code with debug option to produce object files(.o)
and then producing the shared library with them. Then, do 'strip
library_name'. Say, the size of this library is SIZE_SO_D.

Will SIZE_SO_NoD & SIZE_SO_D be exactly/almost equal ? If yes/no, why?
Also, what exactly 'mcs -d library_name' do? Does it reduce symbols
from the shared library which was produced without debug option also?

2. FTP setup difficulties

3. [Fwd: Questions about debugging in shared library]

4. Stealth64

5. Question: Inclusion of shared libraries during linking of shared libraries

6. calendar servers?

7. Need a Shared Library Guru: beyond simple shared library question

8. X-Window Failure

9. How to debug a shared library

10. Performance problems in reading shared libraries in Sun Workshop debug (dbx) V5.0

11. gdb/ddd shared library debugging problem

12. Debugging a shared library?

13. How to debug shared libraries?