Remote all-stop-on-top-of-non-stop
[deliverable/binutils-gdb.git] / gdb / thread.c
index f8103bd531818d14cd024a08bcdd687c142eca60..7d2232f731381937dc5e27b4f9bf62ceab175eca 100644 (file)
@@ -1321,6 +1321,22 @@ info_threads_command (char *arg, int from_tty)
   print_thread_info (current_uiout, arg, -1);
 }
 
+/* See gdbthread.h.  */
+
+void
+switch_to_thread_no_regs (struct thread_info *thread)
+{
+  struct inferior *inf;
+
+  inf = find_inferior_ptid (thread->ptid);
+  gdb_assert (inf != NULL);
+  set_current_program_space (inf->pspace);
+  set_current_inferior (inf);
+
+  inferior_ptid = thread->ptid;
+  stop_pc = ~(CORE_ADDR) 0;
+}
+
 /* Switch from one thread to another.  */
 
 void
This page took 0.02497 seconds and 4 git commands to generate.