summaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2011-05-26 16:23:04 +0000
committerPedro Alves <pedro@codesourcery.com>2011-05-26 16:23:04 +0000
commitd28e5067bf1fde683dfe7b3d5c3e97d24bd426f3 (patch)
tree1f785dcd57e620d077bd1c19432cf6e26dc9afa1 /gdb/infcall.c
parent247246ce3b32a94f60d842250a4773f867727d82 (diff)
downloadgdb-d28e5067bf1fde683dfe7b3d5c3e97d24bd426f3.tar.gz
2011-05-26 Pedro Alves <pedro@codesourcery.com>
gdb/ * infcall.c (call_function_by_hand): Don't allow calling functions in reverse execution mode.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 3f9c8713cf2..4063b7ffabc 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -495,6 +495,9 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
if (get_traceframe_number () >= 0)
error (_("May not call functions while looking at trace frames."));
+ if (execution_direction == EXEC_REVERSE)
+ error (_("May not call functions in reverse."));
+
frame = get_current_frame ();
gdbarch = get_frame_arch (frame);