diff options
author | Pedro Alves <palves@redhat.com> | 2011-05-26 16:23:08 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-05-26 16:23:08 +0000 |
commit | 949dc678a8c8afcd2e71a37635922339a635ec3e (patch) | |
tree | f235b1a77c7b6e071497d3a98319a00c796bb65f /gdb/infcall.c | |
parent | c13bd2b52eedbea982bb19b37dc52626001a11b0 (diff) | |
download | gdb-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.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |