bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugging shared libraries


From: Kevin Buettner
Subject: Re: debugging shared libraries
Date: Wed, 25 Jul 2001 09:11:43 -0700

On Jul 25,  1:58pm, Torsten Blank wrote:

> i have some problems to debug shared libraries with gdb. I don't know
> if there is a solution for them, but i hope so. I use gdb 4.18 and ld
> 2.9.5 under a Linux-kernel 2.2.16. What i do is the following:
> 
> First, i set a breakpoint in the main-executable, so that all shared
> libraries can be loaded. Than i set a breakpoint (or even many) in a
> function, which is located in one of the shared libraries (which i
> have compiled with "-g" and linked with "-shared"). That all work
> fine, but if i "continue" the program, it will skip all the
> breakpoints in the shared library. Is that a bug, a feature or is that
> my fault?

It sounds like a bug.  However, gdb-4.18 is rather old.  Have you
tried either gdb-5.0 or the current development version?

For information on how to fetch a development version, see: 

    http://sources.redhat.com/gdb/#download

If you still see the bug when using a debugger built from the current
development sources, I'd appreciate it if you'd send us a test case.

Thanks,

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]