Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 12 Jan 1999 00:44:30 +0000 (00:44 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 12 Jan 1999 00:44:30 +0000 (00:44 +0000)
        * remote.c (remote_wait): Add inferior_pid to thread list only
        if it is not already there.

gdb/ChangeLog
gdb/remote.c

index ddcf614b1091dbd01354482c325e5aa65f6a46db..ae1e7d9fe1aac0126c16f9866913294bc16d7502 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 1999-01-11  Jason Molenda  (jsm@bugshack.cygnus.com)
 
        * scm-tags.h: Update FSF's address on copyright notice.
index 14662ad2fb192dcd07248a9d3b6e518baabb41c5..e6a2252d93b0263b05bbdbc5d4bfc6b4444becac 100644 (file)
@@ -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;
     }