Introduce switch_to_inferior_no_thread
[deliverable/binutils-gdb.git] / gdb / mi / mi-main.c
index e67738193bbc792bd71b90a789bcce6cf297a6a1..24daf3f883883433856cd0a0ab67e81abad37252 100644 (file)
@@ -414,11 +414,7 @@ run_one_inferior (struct inferior *inf, void *arg)
       switch_to_thread (tp);
     }
   else
-    {
-      set_current_inferior (inf);
-      switch_to_no_thread ();
-      set_current_program_space (inf->pspace);
-    }
+    switch_to_inferior_no_thread (inf);
   mi_execute_cli_command (run_cmd, async_p,
                          async_p ? "&" : NULL);
   return 0;
This page took 0.024511 seconds and 4 git commands to generate.