Status: unsubmitted

This patch was for Debian bug #303736.  I now believe it's in the wrong
place; the generic mourn inferior should do this, perhaps.

---
 gdb/linux-thread-db.c |    3 +++
 1 file changed, 3 insertions(+)

Index: gdb-7.4/gdb/linux-thread-db.c
===================================================================
--- gdb-7.4.orig/gdb/linux-thread-db.c	2011-11-17 15:58:35.000000000 +0000
+++ gdb-7.4/gdb/linux-thread-db.c	2011-11-17 17:03:42.573359067 +0000
@@ -1437,6 +1437,9 @@
      the inferior, so that we don't try to uninsert them.  */
   remove_thread_event_breakpoints ();
 
+  /* Destroy thread info; it's no longer valid.  */
+  init_thread_list ();
+
   /* Detach thread_db target ops.  */
   if (!thread_db_list)
     unpush_target (ops);
