Reduce Hg packet (select remote general thread) bouncing
[deliverable/binutils-gdb.git] / gdb / progspace.c
index b111a50471b46621b7a753dec82a13296743df84..48cb34a5ce51842d64c1029d81856741bac7cb76 100644 (file)
@@ -459,8 +459,7 @@ save_current_space_and_thread (void)
   return old_chain;
 }
 
-/* Switches full context to program space PSPACE.  Switches to the
-   first thread found bound to PSPACE.  */
+/* See progspace.h  */
 
 void
 switch_to_program_space_and_thread (struct program_space *pspace)
@@ -468,7 +467,7 @@ switch_to_program_space_and_thread (struct program_space *pspace)
   struct inferior *inf;
 
   inf = find_inferior_for_program_space (pspace);
-  if (inf != NULL)
+  if (inf != NULL && inf->pid != 0)
     {
       struct thread_info *tp;
 
This page took 0.023603 seconds and 4 git commands to generate.