2008-04-30 Pedro Alves * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list and register the fork's PTID as a thread. --- gdb/linux-nat.c | 2 ++ 1 file changed, 2 insertions(+) Index: src/gdb/linux-nat.c =================================================================== --- src.orig/gdb/linux-nat.c 2008-04-28 11:54:27.000000000 +0100 +++ src/gdb/linux-nat.c 2008-04-28 11:53:38.000000000 +0100 @@ -948,8 +948,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; }