diff options
author | Pedro Alves <palves@redhat.com> | 2008-05-01 22:48:49 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-05-01 22:48:49 +0000 |
commit | 728c8f58672c8ae8235ad96068d01116b6e8157e (patch) | |
tree | 1f713474b518796237881e5affc3dcdef2e4e8be /gdb/linux-nat.c | |
parent | 604133b5c51154a435f50cc079b24cb2f2eb8770 (diff) | |
download | gdb-728c8f58672c8ae8235ad96068d01116b6e8157e.zip gdb-728c8f58672c8ae8235ad96068d01116b6e8157e.tar.gz gdb-728c8f58672c8ae8235ad96068d01116b6e8157e.tar.bz2 |
* linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
and register the fork's PTID as a thread.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 2 |
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; } |