aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-thread-db.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-01-24 21:50:26 +0000
committerDaniel Jacobowitz <drow@false.org>2006-01-24 21:50:26 +0000
commite23fc6de1ad692fa06ce203d28bfe6244f49766e (patch)
tree7915c36591db4c2e27e83f2d7d57a4c40f0d7eb1 /gdb/linux-thread-db.c
parent13d6656b12097181737610bfb405a3276555c51c (diff)
downloadgdb-e23fc6de1ad692fa06ce203d28bfe6244f49766e.zip
gdb-e23fc6de1ad692fa06ce203d28bfe6244f49766e.tar.gz
gdb-e23fc6de1ad692fa06ce203d28bfe6244f49766e.tar.bz2
* linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
after mourning the inferior.
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r--gdb/linux-thread-db.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 76b7d0c..1291480 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;