aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-05-26 16:23:08 +0000
committerPedro Alves <palves@redhat.com>2011-05-26 16:23:08 +0000
commit949dc678a8c8afcd2e71a37635922339a635ec3e (patch)
treef235b1a77c7b6e071497d3a98319a00c796bb65f
parentc13bd2b52eedbea982bb19b37dc52626001a11b0 (diff)
downloadgdb-949dc678a8c8afcd2e71a37635922339a635ec3e.zip
gdb-949dc678a8c8afcd2e71a37635922339a635ec3e.tar.gz
gdb-949dc678a8c8afcd2e71a37635922339a635ec3e.tar.bz2
2011-05-26 Pedro Alves <pedro@codesourcery.com>
gdb/ * infcall.c (call_function_by_hand): Don't allow calling functions in reverse execution mode.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infcall.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ebbf3f5..2f6ae97 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2011-05-26 Pedro Alves <pedro@codesourcery.com>
+ * infcall.c (call_function_by_hand): Don't allow calling functions
+ in reverse execution mode.
+
+2011-05-26 Pedro Alves <pedro@codesourcery.com>
+
* infcmd.c (finish_command): Allow async finish in reverse.
2011-05-26 Yao Qi <yao@codesourcery.com>
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 3f9c871..4063b7f 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);