From: Michael Snyder Date: Tue, 7 Oct 2008 00:23:13 +0000 (+0000) Subject: 2008-10-06 Michael Snyder X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19e5b14430b6768025c0fea93941f26f60cd6581;p=thirdparty%2Fbinutils-gdb.git 2008-10-06 Michael Snyder * infcmd.c (finish_command): Reject async in reverse. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 484c385b3a7..13788b14ae5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,6 @@ 2008-10-06 Michael Snyder + * 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 58bee1e8ab6..8eaaab25809 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -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 ())