aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2009-11-20 17:23:38 +0000
committerMichael Snyder <msnyder@vmware.com>2009-11-20 17:23:38 +0000
commit6b04bdb74a44bebb3d4931de23ae39b0315d06b6 (patch)
tree3eb64a81055abe07f9ba9e86b529138002b04390 /gdb/target.h
parentc29aca4a95885ab0b01c346590afa685cf121919 (diff)
downloadgdb-6b04bdb74a44bebb3d4931de23ae39b0315d06b6.zip
gdb-6b04bdb74a44bebb3d4931de23ae39b0315d06b6.tar.gz
gdb-6b04bdb74a44bebb3d4931de23ae39b0315d06b6.tar.bz2
2009-10-25 Michael Snyder <msnyder@vmware.com>
* target.h (struct target_ops): New methods to_get_bookmark and to_goto_bookmark. (target_get_bookmark): New macro. (target_goto_bookmark): New macro. * target.c (dummy_get_bookmark): New function, default implementation. (dummy_goto_bookmark): New function, default implementation. (update_current_target): Inherit new methods. * record.c (record_get_bookmark): New function. (record_goto_bookmark): New function. (init_record_ops): Set to_get_bookmark and to_goto_bookmark methods. * reverse.c (struct bookmark): New type. (save_bookmark_command): New function (command). (delete_bookmark_command): New function (command). (goto_bookmark_command): New function (command). (bookmarks_info): New function (command). (_initialize_reverse): Add new bookmark commands. * command.h (enum command_class): Add class_bookmark. * NEWS: Mention bookmark commands.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h
index c957b2a..ebe6056 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -459,13 +459,18 @@ struct target_ops
void (*to_async) (void (*) (enum inferior_event_type, void *), void *);
int (*to_async_mask) (int);
int (*to_supports_non_stop) (void);
+ /* find_memory_regions support method for gcore */
int (*to_find_memory_regions) (int (*) (CORE_ADDR,
unsigned long,
int, int, int,
void *),
void *);
+ /* make_corefile_notes support method for gcore */
char * (*to_make_corefile_notes) (bfd *, int *);
-
+ /* get_bookmark support method for bookmarks */
+ gdb_byte * (*to_get_bookmark) (char *, int);
+ /* goto_bookmark support method for bookmarks */
+ void (*to_goto_bookmark) (gdb_byte *, int);
/* Return the thread-local address at OFFSET in the
thread-local storage for the thread PTID and the shared library
or executable file given by OBJFILE. If that block of
@@ -1141,6 +1146,13 @@ extern char *normal_pid_to_str (ptid_t ptid);
#define target_make_corefile_notes(BFD, SIZE_P) \
(current_target.to_make_corefile_notes) (BFD, SIZE_P)
+/* Bookmark interfaces. */
+#define target_get_bookmark(ARGS, FROM_TTY) \
+ (current_target.to_get_bookmark) (ARGS, FROM_TTY)
+
+#define target_goto_bookmark(ARG, FROM_TTY) \
+ (current_target.to_goto_bookmark) (ARG, FROM_TTY)
+
/* Hardware watchpoint interfaces. */
/* Returns non-zero if we were stopped by a hardware watchpoint (memory read or