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
- From: Roland McGrath <roland at redhat dot com>
- To: Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 10 Oct 2003 18:44:38 -0700
- Subject: 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