* linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list

and register the fork's PTID as a thread.
This commit is contained in:
Pedro Alves 2008-05-01 22:48:49 +00:00
parent 604133b5c5
commit 728c8f5867
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-05-01 Pedro Alves <pedro@codesourcery.com>
* linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
and register the fork's PTID as a thread.
2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
PR gdb/1665

View file

@ -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;
}