target, record: add PTID argument to to_record_is_replaying
[deliverable/binutils-gdb.git] / gdb / top.c
index 65143d1bba355f41be6e40d5b700d6561fd4d849..6388ba25881c39570172c819d435dafcf1908185 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -367,6 +367,16 @@ check_frame_language_change (void)
 
 /* See top.h.  */
 
+void
+wait_sync_command_done (void)
+{
+  while (gdb_do_one_event () >= 0)
+    if (!sync_execution)
+      break;
+}
+
+/* See top.h.  */
+
 void
 maybe_wait_sync_command_done (int was_sync)
 {
@@ -375,11 +385,7 @@ maybe_wait_sync_command_done (int was_sync)
      just ran a synchronous command that started the target, wait
      for that command to end.  */
   if (!interpreter_async && !was_sync && sync_execution)
-    {
-      while (gdb_do_one_event () >= 0)
-       if (!sync_execution)
-         break;
-    }
+    wait_sync_command_done ();
 }
 
 /* Execute the line P as a command, in the current user context.
This page took 0.024292 seconds and 4 git commands to generate.