Shared libraries on Linux

H . J . Lu hjl@lucon.org
Sat Apr 1 00:00:00 GMT 2000


On Fri, Feb 11, 2000 at 08:49:46AM +0100, Mark Kettenis wrote:
>    Date: Thu, 10 Feb 2000 16:26:40 -0800
>    From: "H . J . Lu" <hjl@lucon.org>
> 
>    On Wed, Feb 09, 2000 at 11:39:49PM -0500, Jim Kingdon wrote:
>    > > Tue Feb  8 18:19:22 2000  H.J. Lu  <hjl@gnu.org>
>    > 
>    > Well, this one does work for me.
>    > 
>    > Based on reading the code (I didn't actually step through it), it
>    > looks to me like the way it works is in the relevant case it calls
>    > clear_solib, dumps all symbols, and then reloads them (even for
>    > libraries which are still loaded).  That seems slow so I wonder why
>    > the code was written that way.
> 
>    I believe there are 2 problems Sam tried to fix:
> 
>    1. Restart the problem when you have breakpointers set in a DSO
>    which can be a shared library or loded in via dlopen.
>    2. You have DSOs loaded/unloced via dlopen/dlclose. "info shared"
>    may be wrong.
> 
> And again, I ask you for proof of 1.  As far as my experience goes,
> restarting after setting a breakpoint in a shared object works
> flawlessly.

You seem right. It must be fixed after I put the patch in my tree.
But that patch does fix #2. If we cannot find anything better,
I believe it should go into the next gdb release.


H.J.


More information about the Gdb mailing list