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


> It may be possible that the existing mechanisms (either
> TARGET_CREATE_INFERIOR_HOOK or SOLIB_CREATE_INFERIOR_HOOK) are
> adequate, but simply not called from enough places.  If these
> must stay as they are, then we need some new hooks.

I have nothing to add on the subject of whether certain existing hooks
could be called from more places.  I'll leave that to you folks.  It's
certainly the case that a hook of any name, old or new, is adequate if it's
called from the right places.

> These days, we normally set these up as gdbarch methods.  For linux, such
> a method could be registered in the $arch-linux-tdep.c file.

Ok.  I think I understand how to do that if it's the right way to go.
At the moment, I have working code by tweaking the SOLIB macro in tm-linux.h.
Until you all decide whether some existing hook should be called from
elsewhere or a new one added to all those places, I won't bother writing
code for either alternative.


Thanks,
Roland


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