diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infcall.c | 3 |
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); |