This is the mail archive of the gdb-patches@sourceware.org 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: RFC: Fix shared library events after attaching


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


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