diff options
author | Pedro Alves <palves@redhat.com> | 2010-08-06 19:56:02 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-08-06 19:56:02 +0000 |
commit | 0a17aab91559da81737720f37c4ed5020929ec3b (patch) | |
tree | d61d27bff49606aab2de906a2399b525c06fc95c /gdb/thread.c | |
parent | 8a237e40bc20cc683951f1ce5ca818c234fecc9b (diff) | |
download | binutils-gdb-gdb_7_1-branch.tar.gz |
2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>gdb_7_1-branch
* thread.c (add_thread_silent): Use null_ptid instead of
minus_one_ptid while getting rid of stale inferior_ptid.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 16a207c5119..80d005c4062 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); |