Use "switch_to_thread" more thoroughly on gdbserver
[deliverable/binutils-gdb.git] / gdb / gdbserver / inferiors.c
index 72f0412757340f63a0029ac75a6dd5f477515368..3a45959000a6a949ff6a7a5fefe7bf6826ebbd28 100644 (file)
@@ -442,6 +442,6 @@ make_cleanup_restore_current_thread (void)
 void
 switch_to_thread (ptid_t ptid)
 {
-  if (!ptid_equal (ptid, minus_one_ptid))
-    current_thread = find_thread_ptid (ptid);
+  gdb_assert (ptid != minus_one_ptid);
+  current_thread = find_thread_ptid (ptid);
 }
This page took 0.023821 seconds and 4 git commands to generate.