2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 31 Aug 2010 19:31:00 +0000 (19:31 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 31 Aug 2010 19:31:00 +0000 (19:31 +0000)
* infrun.c (set_exec_direction_func): Error out if target does not
support reverse execution.

gdb/ChangeLog
gdb/infrun.c

index 8f61441..1febb54 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
+
+       * infrun.c (set_exec_direction_func): Error out if target does not
+       support reverse execution.
+
 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Make linux_get_siginfo_type `type *' unique.
index dd89e78..8b1f82a 100644 (file)
@@ -6437,6 +6437,11 @@ set_exec_direction_func (char *args, int from_tty,
       else if (!strcmp (exec_direction, exec_reverse))
        execution_direction = EXEC_REVERSE;
     }
+  else
+    {
+      exec_direction = exec_forward;
+      error (_("Target does not support this operation."));
+    }
 }
 
 static void