]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2009-07-25 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Sun, 26 Jul 2009 01:29:42 +0000 (01:29 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sun, 26 Jul 2009 01:29:42 +0000 (01:29 +0000)
* target.h (struct target_ops): New methods to_set_checkpoint,
to_unset_checkpoint, to_restore_checkpoint, to_info_checkpoints.
* target.c (update_current_target): Inherit the above methods.

gdb/ChangeLog
gdb/target.c
gdb/target.h

index 4fc3bd85a894916253606b104e841b2f7bed8907..1a579a11bbefa051ad5db43c332387a549084ac8 100644 (file)
@@ -1,3 +1,9 @@
+2009-07-25  Michael Snyder  <msnyder@vmware.com>
+
+       * target.h (struct target_ops): New methods to_set_checkpoint,
+       to_unset_checkpoint, to_restore_checkpoint, to_info_checkpoints.
+       * target.c (update_current_target): Inherit the above methods.
+
 2009-07-25  Pedro Alves  <pedro@codesourcery.com>
 
        * stack.c (backtrace_command_1): Remove dead check of NULL current
index e1c1e0b66c9c17c077070ad45563b549e3e1c727..49a255a4331fddb9aa5bd7082de55a7001eb0f71 100644 (file)
@@ -637,6 +637,10 @@ update_current_target (void)
       INHERIT (to_make_corefile_notes, t);
       /* Do not inherit to_get_thread_local_address.  */
       INHERIT (to_can_execute_reverse, t);
+      INHERIT (to_set_checkpoint, t);
+      INHERIT (to_unset_checkpoint, t);
+      INHERIT (to_restore_checkpoint, t);
+      INHERIT (to_info_checkpoints, t);
       INHERIT (to_thread_architecture, t);
       /* Do not inherit to_read_description.  */
       INHERIT (to_get_ada_task_ptid, t);
index c425a5bae3e1184bcc25204e82a47e14beb66957..81808532cce0e048868cd04366eced310b77492f 100644 (file)
@@ -555,6 +555,18 @@ struct target_ops
        The default implementation always returns target_gdbarch.  */
     struct gdbarch *(*to_thread_architecture) (struct target_ops *, ptid_t);
 
+    /* Set a checkpoint.  */
+    void (*to_set_checkpoint) (char *, int);
+
+    /* Unset a checkpoint.  */
+    void (*to_unset_checkpoint) (char *, int);
+
+    /* Restore a checkpoint.  */
+    void (*to_restore_checkpoint) (char *, int);
+
+    /* List checkpoints.  */
+    void (*to_info_checkpoints) (char *, int);
+
     int to_magic;
     /* Need sub-structure for target machine related rather than comm related?
      */
@@ -1141,6 +1153,18 @@ extern const struct target_desc *target_read_description (struct target_ops *);
 #define target_get_ada_task_ptid(lwp, tid) \
      (*current_target.to_get_ada_task_ptid) (lwp,tid)
 
+/* Set a checkpoint.  */
+#define target_set_checkpoint (current_target.to_set_checkpoint)
+
+/* Unset a checkpoint.  */
+#define target_unset_checkpoint (current_target.to_unset_checkpoint)
+
+/* Restore a checkpoint.  */
+#define target_restore_checkpoint (current_target.to_restore_checkpoint)
+
+/* List checkpoints.  */
+#define target_info_checkpoints (current_target.to_info_checkpoints)
+
 /* Utility implementation of searching memory.  */
 extern int simple_search_memory (struct target_ops* ops,
                                  CORE_ADDR start_addr,