]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Fri, 6 Aug 2010 19:51:49 +0000 (19:51 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 6 Aug 2010 19:51:49 +0000 (19:51 +0000)
* thread.c (add_thread_silent): Use null_ptid instead of
minus_one_ptid while getting rid of stale inferior_ptid.

gdb/ChangeLog
gdb/thread.c

index c94c80a3282bc0a65f3d445abd5ac9dc8644aa1c..c9e4432c01945e3b149e6f804954eccf123f524d 100644 (file)
@@ -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-08-05  Marc Khouzam  <marc.khouzam@ericsson.com>
 
        * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first 
index 2fdc7f9b326fc47eba28b44b7d6a4796885329ae..0b291bae972575811272f0ad9275d123f847c8ac 100644 (file)
@@ -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);