This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: A new revised patch for dlclose
On Fri, Mar 10, 2000 at 02:48:23AM +1100, Andrew Cagney wrote:
> "H . J . Lu" wrote:
> >
> > On Tue, Mar 07, 2000 at 12:08:00PM -0800, H . J . Lu wrote:
> > > Here is a revised patch for dlclose. If you take a look at the
> > > dynamic linker in glibc 2.1 or above, you will find that it informs
> > > gdb about loading/unloading a shared library via an internal debug
> > > function, _dl_debug_state (). gdb already handles the loading in
> > > handle_inferior_event () with BPSTAT_WHAT_CHECK_SHLIBS and
> > > BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. However, we need also
> > > check the unloading event. solib_verify () will be called only when the
> > > dynamic linker calls _dl_debug_state (). It shouldn't introduce any
> > > overhead. I believe it is on the right track although it may be further
> > > optimized.
>
> H.J., I'm curious. Who is Sam Lantinga, they don't show up in GDB's
> copyright assignment file.
>
I think he works for Loki, the game company. They use thread and dlopen
a lot. In anycase, my latest dlclose fix is totally different from his
original patch.
H.J.