aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:36:04 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:01 -0700
commitdd0e2830ee1e66c4bac079bacffc081a041cb5a8 (patch)
treeeefbcf4894dfa5fa3881a06b8fa315e074cde273
parentfc6691b2590f61a2f1deeb9d73e7df23b1ced88a (diff)
downloadgdb-dd0e2830ee1e66c4bac079bacffc081a041cb5a8.zip
gdb-dd0e2830ee1e66c4bac079bacffc081a041cb5a8.tar.gz
gdb-dd0e2830ee1e66c4bac079bacffc081a041cb5a8.tar.bz2
Add target_ops argument to to_get_bookmark
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_get_bookmark>: Add argument. (target_get_bookmark): Add argument. * target.c (dummy_get_bookmark): Add 'self' argument. * record-full.c (record_full_get_bookmark): Add 'self' argument.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/record-full.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h4
4 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1d0550f..cc6a3a4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops) <to_get_bookmark>: Add argument.
+ (target_get_bookmark): Add argument.
+ * target.c (dummy_get_bookmark): Add 'self' argument.
+ * record-full.c (record_full_get_bookmark): Add 'self' argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_make_corefile_notes>: Add
argument.
(target_make_corefile_notes): Add argument.
diff --git a/gdb/record-full.c b/gdb/record-full.c
index 04ba714..d514741 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -1701,7 +1701,7 @@ record_full_can_execute_reverse (void)
/* "to_get_bookmark" method for process record and prec over core. */
static gdb_byte *
-record_full_get_bookmark (char *args, int from_tty)
+record_full_get_bookmark (struct target_ops *self, char *args, int from_tty)
{
char *ret = NULL;
diff --git a/gdb/target.c b/gdb/target.c
index 4d193c9..74725f8 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3788,7 +3788,7 @@ dummy_make_corefile_notes (struct target_ops *self,
/* Error-catcher for target_get_bookmark. */
static gdb_byte *
-dummy_get_bookmark (char *ignore1, int ignore2)
+dummy_get_bookmark (struct target_ops *self, char *ignore1, int ignore2)
{
tcomplain ();
return NULL;
diff --git a/gdb/target.h b/gdb/target.h
index 7faf059..732c2a9 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -552,7 +552,7 @@ struct target_ops
/* make_corefile_notes support method for gcore */
char * (*to_make_corefile_notes) (struct target_ops *, bfd *, int *);
/* get_bookmark support method for bookmarks */
- gdb_byte * (*to_get_bookmark) (char *, int);
+ gdb_byte * (*to_get_bookmark) (struct target_ops *, char *, int);
/* goto_bookmark support method for bookmarks */
void (*to_goto_bookmark) (gdb_byte *, int);
/* Return the thread-local address at OFFSET in the
@@ -1572,7 +1572,7 @@ extern char *target_thread_name (struct thread_info *);
/* Bookmark interfaces. */
#define target_get_bookmark(ARGS, FROM_TTY) \
- (current_target.to_get_bookmark) (ARGS, FROM_TTY)
+ (current_target.to_get_bookmark) (&current_target, ARGS, FROM_TTY)
#define target_goto_bookmark(ARG, FROM_TTY) \
(current_target.to_goto_bookmark) (ARG, FROM_TTY)