[Fwd: Questions about debugging in shared library]

[Fwd: Questions about debugging in shared library]

Post by Oleg V. Shalne » Sat, 14 Feb 1998 04:00:00



[ Attached Message ]

From:
To:
Date: Fri, 13 Feb 1998 22:10:11 +0000
Local: Fri, Feb 13 1998 5:10 pm
Subject: Re: Questions about debugging in shared library


> 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"

You may do something like thisdgb> b main
than run application. GDB  will load all shared libraries and after thi
steps
set your breakpoint.
All this step a do in RH 4.1 but now I am in RH5.0 and I have
problems with debugging.

Quote:> And gdb stops at the end of the function.

STOP This is my problem too.In my situation gdb can't correct get line
information
from source code (may be).
I need help too.
 Oleg
 
 
 

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. Samba With Radius Auth

3. Questions about debugging in shared library

4. how can gcc compile "#include <math.h> file??

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

6. PLIP problems

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

8. IRQ mapper?

9. non-PIC ELF shared libraries (fwd)

10. Shared library seems corrupted. ??? (fwd)

11. How to debug a shared library

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

13. gdb/ddd shared library debugging problem