summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2010-08-06 19:56:02 +0000
committerPedro Alves <pedro@codesourcery.com>2010-08-06 19:56:02 +0000
commit5af650538398133e25c95cc7cf50e60b827323ac (patch)
tree96517e72f2825260a2bb9f580452031b5b7e64a5
parent9d68ba594cdd5c9c8dabaf40eb2d5776bf3cde32 (diff)
downloadgdb_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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/thread.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ede39492d98..56a8afd4fae 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * thread.c (add_thread_silent): Use null_ptid instead of
+ minus_one_ptid while getting rid of stale inferior_ptid.
+
2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
* symfile.c (addr_info_make_relative): Move sect declaration to the
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);