This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Don't allow calling inferior functions in reverse execution mode
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 26 May 2011 17:23:22 +0100
- Subject: Don't allow calling inferior functions in reverse execution mode
Can't work...
Applied.
--
Pedro Alves
2011-05-26 Pedro Alves <pedro@codesourcery.com>
gdb/
* infcall.c (call_function_by_hand): Don't allow calling functions
in reverse execution mode.
---
gdb/infcall.c | 3 +++
1 file changed, 3 insertions(+)
Index: src/gdb/infcall.c
===================================================================
--- src.orig/gdb/infcall.c 2011-05-26 17:16:02.000000000 +0100
+++ src/gdb/infcall.c 2011-05-26 17:15:57.251253809 +0100
@@ -495,6 +495,9 @@ call_function_by_hand (struct value *fun
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);