From 949dc678a8c8afcd2e71a37635922339a635ec3e Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 26 May 2011 16:23:08 +0000 Subject: [PATCH] 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 ebbf3f5a077..2f6ae9793c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. 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); -- 2.30.2