diff options
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r-- | gdb/gnu-nat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 124574e8ed6..85a53b8b1b6 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -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); |