From 98c5c19292955a5c4af4390b3585decbcb75b775 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 12 Jan 1999 00:44:30 +0000 Subject: [PATCH] Mon Jan 11 16:43:44 1999 Michael Snyder * remote.c (remote_wait): Add inferior_pid to thread list only if it is not already there. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ddcf614b109..ae1e7d9fe1a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 11 16:43:44 1999 Michael Snyder + + * 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. diff --git a/gdb/remote.c b/gdb/remote.c index 14662ad2fb1..e6a2252d93b 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; } -- 2.30.2