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: Kevin Buettner <kevinb at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>, Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 14 Oct 2003 21:33:35 -0700
- Subject: Re: unwind support for Linux 2.6 vsyscall DSO
- References: <200310110147.h9B1lN0L016885@magilla.sf.frob.com>
On Oct 10, 6:47pm, Roland McGrath wrote:
> > SOLIB_ADD will only be called when the dynamic linker's "hey, I've
> > just (un)loaded something new" breakpoint has been hit. (More
> > precisely, this is the breakpoint placed at r_brk in the r_debug
> > struct.) This occurs quite early in the execution of the program, but
> > it might not be early enough. Also, as Daniel alludes, it won't
> > happen at all for static binaries.
>
> Ok, then that is really not sufficient. I apparently got a mistaken
> impression of how early it gets called from the previous discussion. The
> more I think about it, the more a single new hook that is clearly "inferior
> address space we haven't seen before" (i.e. exec/attach but not fork) looks
> like the clean and sensible thing. All the existing hooks have semantics
> that are either not quite clear or are clearly different from that.
Sounds right to me...
Kevin