From dd0e2830ee1e66c4bac079bacffc081a041cb5a8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:36:04 -0700 Subject: Add target_ops argument to to_get_bookmark 2014-02-19 Tom Tromey * target.h (struct target_ops) : 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. --- gdb/target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/target.h') 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) (¤t_target, ARGS, FROM_TTY) #define target_goto_bookmark(ARG, FROM_TTY) \ (current_target.to_goto_bookmark) (ARG, FROM_TTY) -- cgit v1.1