projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
604133b
)
* linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
author
Pedro Alves
<palves@redhat.com>
Thu, 1 May 2008 22:48:49 +0000
(22:48 +0000)
committer
Pedro Alves
<palves@redhat.com>
Thu, 1 May 2008 22:48:49 +0000
(22:48 +0000)
and register the fork's PTID as a thread.
gdb/ChangeLog
patch
|
blob
|
history
gdb/linux-nat.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 8f614d98ba7b7936d51bc943f219718d6a3e5aa7..b45350a97defaf0ec0d21c6bc27f606d18929909 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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
diff --git
a/gdb/linux-nat.c
b/gdb/linux-nat.c
index b09cd498960283d0b8f3dc8296756a4a40777096..246712cb5a71e9789df713c9eeffc1847923bad8 100644
(file)
--- 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;
}