This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: unwind support for Linux 2.6 vsyscall DSO
On Sat, Oct 04, 2003 at 01:27:06PM -0700, Roland McGrath wrote:
> > > Should this SOLIB_ADD then just store whether it has checked yet and clear
> > > that record in SOLIB_CLEAR?
> >
> > I think that's what it would take. Open to better ideas, I'm just
> > doing the best I can. :)
>
> Ok. I don't see a problem with this if the sequence of when SOLIB_ADD and
> SOLIB_CLEAR will be called is correct. That is, SOLIB_ADD after core load,
> after attach, or after the break-on-exec (second one) from run, and
> SOLIB_CLEAR some appropriate time for unloading symbols. It's important
> that SOLIB_ADD not be called too early in the run case, i.e. before the
> second exec so that the inferior's state is not yet as it will be.
> Can I rely on that not happening?
Yes, since this is when solibs are normally loaded anyway.
An issue is whether it gets called early enough, i.e. before the
dynamic linker breakpoint is hit, or at all for static applications.
We'll have to see.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer