]> 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:23:13 +0000 (00:23 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 7 Oct 2008 00:23:13 +0000 (00:23 +0000)
* infcmd.c (finish_command): Reject async in reverse.

gdb/ChangeLog
gdb/infcmd.c

index 484c385b3a7d55f931a4a487b4051e865cb6b71f..13788b14ae5e5a80ea00b878f779b0113870f726 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 58bee1e8ab6afd6689a16496de05648ad21ec509..8eaaab25809750f2a0ad5af657c10a8ae5ec7b07 100644 (file)
@@ -1453,6 +1453,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 ())