[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-patches
Subject:    RFC: Fix shared library events after attaching
From:       drow () false ! org (Daniel Jacobowitz)
Date:       2006-01-24 22:34:00
Message-ID: 20060124223449.GE27626 () nevyn ! them ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic