]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2010-08-06 Maciej W. Rozycki <macro@codesourcery.com> gdb_7_1-branch
authorPedro Alves <palves@redhat.com>
Fri, 6 Aug 2010 19:56:02 +0000 (19:56 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 6 Aug 2010 19:56:02 +0000 (19:56 +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 ede39492d9836722bbc0147fc92a9e440bbc82b0..56a8afd4faeda15b8c1b49799d6651bef841fa13 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-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * symfile.c (addr_info_make_relative): Move sect declaration to the
index 16a207c5119baf70d5b7f2baccff0ddcbd1ce1aa..80d005c4062911a61003ad2eb565927ed95773fe 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);