]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2008-10-06 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 7 Oct 2008 00:22:55 +0000 (00:22 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 7 Oct 2008 00:22:55 +0000 (00:22 +0000)
* infcmd.c (finish_command): Reject async in reverse.

gdb/ChangeLog
gdb/infcmd.c

index 63bde1d1553ae664321f16fcae01b1df24c1a84f..9fc6c857ab317cdd42cf07b18e969a14f97001e9 100644 (file)
@@ -1,5 +1,6 @@
 2008-10-06  Michael Snyder  <msnyder@vmware.com>
 
+       * infcmd.c (finish_command): Reject async in reverse.
        * infcmd.c (finish_command): Use i18n macros.
        * infcmd.c: Minor function reordering.
        * infrun.c (step_into_function): Rename to stepped_into_function.
index 3d5c59d4404c9457ea5184468def046a26b96102..ab498a0848f3fdfc80f9f144d7c5e29a1d570fc0 100644 (file)
@@ -1500,6 +1500,10 @@ finish_command (char *arg, int from_tty)
   if (async_exec && !target_can_async_p ())
     error (_("Asynchronous execution not supported on this target."));
 
+  /* Don't try to async in reverse.  */
+  if (async_exec && target_get_execution_direction () == EXEC_REVERSE)
+    error (_("Asynchronous 'finish' not supported in reverse."));
+
   /* If we are not asked to run in the bg, then prepare to run in the
      foreground, synchronously.  */
   if (!async_exec && target_can_async_p ())