diff options
author | Michael Snyder <msnyder@vmware.com> | 1999-01-12 00:44:30 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 1999-01-12 00:44:30 +0000 |
commit | 98c5c19292955a5c4af4390b3585decbcb75b775 (patch) | |
tree | 5df774b0241765104373806387682175ab5e6847 /gdb/remote.c | |
parent | 533a502fafecdd744e4c367851a3a7e36988c368 (diff) | |
download | gdb-98c5c19292955a5c4af4390b3585decbcb75b775.zip gdb-98c5c19292955a5c4af4390b3585decbcb75b775.tar.gz gdb-98c5c19292955a5c4af4390b3585decbcb75b775.tar.bz2 |
Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
* remote.c (remote_wait): Add inferior_pid to thread list only
if it is not already there.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 14662ad..e6a2252d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1814,7 +1814,8 @@ Packet: '%s'\n", if (inferior_pid == MAGIC_NULL_PID) { inferior_pid = thread_num; - add_thread (inferior_pid); + if (!in_thread_list (inferior_pid)) + add_thread (inferior_pid); } return thread_num; } |