From: Pedro Alves Date: Fri, 6 Aug 2010 19:51:49 +0000 (+0000) Subject: 2010-08-06 Maciej W. Rozycki X-Git-Tag: gdb_7_2-2010-09-02-release~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb8d12a847159605428465cf5cdce4b6d379bc63;p=thirdparty%2Fbinutils-gdb.git 2010-08-06 Maciej W. Rozycki * thread.c (add_thread_silent): Use null_ptid instead of minus_one_ptid while getting rid of stale inferior_ptid. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c94c80a3282..c9e4432c019 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-08-06 Maciej W. Rozycki + + * thread.c (add_thread_silent): Use null_ptid instead of + minus_one_ptid while getting rid of stale inferior_ptid. + 2010-08-05 Marc Khouzam * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first diff --git a/gdb/thread.c b/gdb/thread.c index 2fdc7f9b326..0b291bae972 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -187,11 +187,11 @@ add_thread_silent (ptid_t ptid) if (ptid_equal (inferior_ptid, ptid)) { - tp = new_thread (ptid); + tp = new_thread (null_ptid); /* Make switch_to_thread not read from the thread. */ tp->state_ = THREAD_EXITED; - switch_to_thread (minus_one_ptid); + switch_to_thread (null_ptid); /* Now we can delete it. */ delete_thread (ptid);