aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-08-31 19:31:00 +0000
committerMichael Snyder <msnyder@vmware.com>2010-08-31 19:31:00 +0000
commit8bbed40521ffa3852a201d249162567ee6d5b8ec (patch)
treee6eddbeb31536413ae334281796744f77c5c0867 /gdb/infrun.c
parent0f254bb76b26378c55e58c9226efabe389ca71db (diff)
downloadgdb-8bbed40521ffa3852a201d249162567ee6d5b8ec.zip
gdb-8bbed40521ffa3852a201d249162567ee6d5b8ec.tar.gz
gdb-8bbed40521ffa3852a201d249162567ee6d5b8ec.tar.bz2
2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* infrun.c (set_exec_direction_func): Error out if target does not support reverse execution.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index dd89e78..8b1f82a 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -6437,6 +6437,11 @@ set_exec_direction_func (char *args, int from_tty,
else if (!strcmp (exec_direction, exec_reverse))
execution_direction = EXEC_REVERSE;
}
+ else
+ {
+ exec_direction = exec_forward;
+ error (_("Target does not support this operation."));
+ }
}
static void