This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unwind support for Linux 2.6 vsyscall DSO


On Oct 9,  4:23pm, Daniel Jacobowitz wrote:

> On Thu, Oct 09, 2003 at 01:21:02PM -0700, Kevin Buettner wrote:
> > On Oct 9,  4:02pm, Daniel Jacobowitz wrote:
> > 
> > > The problem with using SOLIB_ADD for this is that we can't SOLIB_ADD
> > > safely till we hit the dynamic linker breakpoint, but it would be
> > > _really_ nice to be able to load this object right after the inferior
> > > starts (and for static binaries, etc etc).  How would you suggets we do
> > > that?
> > 
> > I think that's what TARGET_CREATE_INFERIOR_HOOK is for.
> 
> Sounds good to me.
> 
> By the way, assuming I remember this correctly, the DSO will _also_
> show up in the link map we get from the dynamic loader.  Not sure how
> that will influence things.

If this entry is already present in the list of so_list structs (pointed
at by ``so_list_head''), it shouldn't cause any problem.  If it's not,
an attempt will be made to load it.  I'm not sure what the result of
that will be.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]