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.1/gdb/linux-thread-db.c =================================================================== --- gdb-7.1.orig/gdb/linux-thread-db.c +++ gdb-7.1/gdb/linux-thread-db.c @@ -1280,6 +1280,9 @@ thread_db_mourn_inferior (struct target_ 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);