summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2008-10-07 00:22:55 +0000
committerMichael Snyder <msnyder@specifix.com>2008-10-07 00:22:55 +0000
commit61d13363c1640e67a194c6eb4a4138d714f7868f (patch)
tree300ec011909f3b4e1a3832d5afaec5aa3b433a5c
parent71470e879a1c20f454a55db606f9bc5e216dfd9a (diff)
downloadgdb-61d13363c1640e67a194c6eb4a4138d714f7868f.tar.gz
2008-10-06 Michael Snyder <msnyder@vmware.com>
* infcmd.c (finish_command): Reject async in reverse.
-rw-r--r--gdb/ChangeLog1
-rw-r--r--gdb/infcmd.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 63bde1d1553..9fc6c857ab3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 3d5c59d4404..ab498a0848f 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -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 ())