Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Don't allow calling inferior functions in reverse execution mode
@ 2011-05-26 16:23 Pedro Alves
  2011-05-26 16:37 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Pedro Alves @ 2011-05-26 16:23 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-30 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 16:23 Don't allow calling inferior functions in reverse execution mode Pedro Alves
2011-05-26 16:37 ` Joel Brobecker
2011-05-26 17:21   ` Eli Zaretskii
2011-05-30 16:09     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox