*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / record.c
index 8ad5bf8c74295a632886e10b4f129cf598b4f3e5..8b56010e29b15a21abaa73e0d72ed2b8246a0db0 100644 (file)
@@ -496,12 +496,8 @@ record_open (char *name, int from_tty)
 
   /* Check if record target is already running.  */
   if (current_target.to_stratum == record_stratum)
-    {
-      if (!nquery
-         (_("Process record target already running, do you want to delete "
-            "the old record log?")))
-       return;
-    }
+    error (_("Process record target already running.  Use \"record stop\" to "
+             "stop record target first."));
 
   /*Reset the beneath function pointers.  */
   record_beneath_to_resume = NULL;
@@ -1029,15 +1025,15 @@ record_store_registers (struct target_ops *ops, struct regcache *regcache,
          /* Let user choose if he wants to write register or not.  */
          if (regno < 0)
            n =
-             nquery (_("Because GDB is in replay mode, changing the "
-                       "value of a register will make the execution "
-                       "log unusable from this point onward.  "
-                       "Change all registers?"));
+             query (_("Because GDB is in replay mode, changing the "
+                      "value of a register will make the execution "
+                      "log unusable from this point onward.  "
+                      "Change all registers?"));
          else
            n =
-             nquery (_("Because GDB is in replay mode, changing the value "
-                       "of a register will make the execution log unusable "
-                       "from this point onward.  Change register %s?"),
+             query (_("Because GDB is in replay mode, changing the value "
+                      "of a register will make the execution log unusable "
+                      "from this point onward.  Change register %s?"),
                      gdbarch_register_name (get_regcache_arch (regcache),
                                               regno));
 
@@ -1085,9 +1081,9 @@ record_xfer_partial (struct target_ops *ops, enum target_object object,
       if (RECORD_IS_REPLAY)
        {
          /* Let user choose if he wants to write memory or not.  */
-         if (!nquery (_("Because GDB is in replay mode, writing to memory "
-                        "will make the execution log unusable from this "
-                        "point onward.  Write memory at address %s?"),
+         if (!query (_("Because GDB is in replay mode, writing to memory "
+                       "will make the execution log unusable from this "
+                       "point onward.  Write memory at address %s?"),
                       paddress (target_gdbarch, offset)))
            error (_("Process record canceled the operation."));
 
@@ -1249,9 +1245,9 @@ cmd_record_stop (char *args, int from_tty)
 {
   if (current_target.to_stratum == record_stratum)
     {
-      if (!record_list || !from_tty || query (_("Delete recorded log and "
-                                               "stop recording?")))
-       unpush_target (&record_ops);
+      unpush_target (&record_ops);
+      printf_unfiltered (_("Process record is stoped and all execution "
+                           "log is deleted.\n"));
     }
   else
     printf_unfiltered (_("Process record is not started.\n"));
This page took 0.025182 seconds and 4 git commands to generate.