From: Daniel Jacobowitz Date: Tue, 24 Jan 2006 21:50:26 +0000 (+0000) Subject: * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e23fc6de1ad692fa06ce203d28bfe6244f49766e;p=binutils-gdb.git * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints after mourning the inferior. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c76d6c8844f..3acfcf87967 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-01-24 Daniel Jacobowitz + + * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints + after mourning the inferior. + 2006-01-24 Jim Blandy * valarith.c (binop_user_defined_p): Handle refs to typedefs. diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 76b7d0cae7f..12914801475 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -1104,14 +1104,16 @@ thread_db_post_startup_inferior (ptid_t ptid) static void thread_db_mourn_inferior (void) { - remove_thread_event_breakpoints (); - /* Forget about the child's process ID. We shouldn't need it anymore. */ proc_handle.pid = 0; target_beneath->to_mourn_inferior (); + /* Delete the old thread event breakpoints. Do this after mourning + the inferior, so that we don't try to uninsert them. */ + remove_thread_event_breakpoints (); + /* Detach thread_db target ops. */ unpush_target (&thread_db_ops); using_thread_db = 0;