Clean up gdb.gdb/selftest.exp
[binutils-gdb.git] / gdb / gnu-nat.c
index 124574e8ed6b9ff4a2d97435b809317d7d9b67f9..85a53b8b1b6a9ad861b5325b46665d3c315c63da 100644 (file)
@@ -2163,6 +2163,8 @@ gnu_create_inferior (struct target_ops *ops,
 
   startup_inferior (START_INFERIOR_TRAPS_EXPECTED);
   inf->pending_execs = 0;
+  /* Get rid of the old shell threads.  */
+  prune_threads ();
 
   inf_validate_procinfo (inf);
   inf_update_signal_thread (inf);