aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index b09cd49..246712c 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -973,8 +973,10 @@ linux_nat_switch_fork (ptid_t new_ptid)
{
struct lwp_info *lp;
+ init_thread_list ();
init_lwp_list ();
lp = add_lwp (new_ptid);
+ add_thread_silent (new_ptid);
lp->stopped = 1;
}