This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Fix shared library events after attaching
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Tue, 24 Jan 2006 17:34:49 -0500
- Subject: Re: RFC: Fix shared library events after attaching
- References: <20060116202843.GA12463@nevyn.them.org>
On Mon, Jan 16, 2006 at 03:28:43PM -0500, Daniel Jacobowitz wrote:
> This patch builds on top of the previous one (which I'd actually done for a
> completely different reason) in order to fix PR 1914. The bug report is
> that we don't set the magical ld.so breakpoint after attaching to an
> executable; therefore, symbols would not be read for dlopened libraries, et
> cetera.
>
> The cause was a missing call to SOLIB_CREATE_INFERIOR_HOOK. But rather than
> add it in another handful of places, this patch refactors it to be called
> from post_create_inferior. So when we connect to any kind of inferior,
> we should end up at that function, and both enable the shared library
> breakpoints and load the current list of shared libraries. Just like my
> last patch, this one mostly deletes duplicated code.
>
> Tested on x86_64-pc-linux-gnu. Any comments? If not, I'll commit this one
> if I get a favorable reaction to the to_create_inferior/proceed patch upon
> which this depends.
No comments; I've retested this and checked it in.
--
Daniel Jacobowitz
CodeSourcery