2011-05-26 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Thu, 26 May 2011 16:23:08 +0000 (16:23 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 26 May 2011 16:23:08 +0000 (16:23 +0000)
gdb/
* infcall.c (call_function_by_hand): Don't allow calling functions
in reverse execution mode.

gdb/ChangeLog
gdb/infcall.c

index ebbf3f5a077675526c712a91f1338814cccaf14e..2f6ae9793c8f9a084ac1385fbb73762ac541a3dc 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-26  Pedro Alves  <pedro@codesourcery.com>
+
+       * infcall.c (call_function_by_hand): Don't allow calling functions
+       in reverse execution mode.
+
 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
 
        * infcmd.c (finish_command): Allow async finish in reverse.
index 3f9c8713cf2a2ebf771c230be4ed9a5fb6e0509b..4063b7ffabca366e0e262c2aaeca89c77e4682ad 100644 (file)
@@ -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);
 
This page took 0.027541 seconds and 4 git commands to generate.