Don't write to inferior_ptid in bsd-kvm.c
[deliverable/binutils-gdb.git] / gdb / process-stratum-target.c
index f3fd9ee905db65e5bd52efa77c82608f3d3ad3e9..9eff5ab56eaafe8c3963c914c83f67939e997421 100644 (file)
@@ -83,3 +83,28 @@ process_stratum_target::has_execution (inferior *inf)
      through hoops.  */
   return inf->pid != 0;
 }
+
+/* See process-stratum-target.h.  */
+
+std::set<process_stratum_target *>
+all_non_exited_process_targets ()
+{
+  /* Inferiors may share targets.  To eliminate duplicates, use a set.  */
+  std::set<process_stratum_target *> targets;
+  for (inferior *inf : all_non_exited_inferiors ())
+    targets.insert (inf->process_target ());
+
+  return targets;
+}
+
+/* See process-stratum-target.h.  */
+
+void
+switch_to_target_no_thread (process_stratum_target *target)
+{
+  for (inferior *inf : all_inferiors (target))
+    {
+      switch_to_inferior_no_thread (inf);
+      break;
+    }
+}
This page took 0.025911 seconds and 4 git commands to generate.