This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]