From 949dc678a8c8afcd2e71a37635922339a635ec3e Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 26 May 2011 16:23:08 +0000 Subject: 2011-05-26 Pedro Alves gdb/ * infcall.c (call_function_by_hand): Don't allow calling functions in reverse execution mode. --- gdb/ChangeLog | 5 +++++ gdb/infcall.c | 3 +++ 2 files changed, 8 insertions(+) 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 + * infcall.c (call_function_by_hand): Don't allow calling functions + in reverse execution mode. + +2011-05-26 Pedro Alves + * infcmd.c (finish_command): Allow async finish in reverse. 2011-05-26 Yao Qi 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); -- cgit v1.1