* gdb-add-index.sh: Really remove.
[deliverable/binutils-gdb.git] / gdb / thread.c
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);
This page took 0.023155 seconds and 4 git commands to generate.