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.
This commit is contained in:
parent
fc6691b259
commit
dd0e2830ee
4 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_make_corefile_notes>: Add
|
* target.h (struct target_ops) <to_make_corefile_notes>: Add
|
||||||
|
|
|
@ -1701,7 +1701,7 @@ record_full_can_execute_reverse (void)
|
||||||
/* "to_get_bookmark" method for process record and prec over core. */
|
/* "to_get_bookmark" method for process record and prec over core. */
|
||||||
|
|
||||||
static gdb_byte *
|
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;
|
char *ret = NULL;
|
||||||
|
|
||||||
|
|
|
@ -3788,7 +3788,7 @@ dummy_make_corefile_notes (struct target_ops *self,
|
||||||
|
|
||||||
/* Error-catcher for target_get_bookmark. */
|
/* Error-catcher for target_get_bookmark. */
|
||||||
static gdb_byte *
|
static gdb_byte *
|
||||||
dummy_get_bookmark (char *ignore1, int ignore2)
|
dummy_get_bookmark (struct target_ops *self, char *ignore1, int ignore2)
|
||||||
{
|
{
|
||||||
tcomplain ();
|
tcomplain ();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -552,7 +552,7 @@ struct target_ops
|
||||||
/* make_corefile_notes support method for gcore */
|
/* make_corefile_notes support method for gcore */
|
||||||
char * (*to_make_corefile_notes) (struct target_ops *, bfd *, int *);
|
char * (*to_make_corefile_notes) (struct target_ops *, bfd *, int *);
|
||||||
/* get_bookmark support method for bookmarks */
|
/* 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 */
|
/* goto_bookmark support method for bookmarks */
|
||||||
void (*to_goto_bookmark) (gdb_byte *, int);
|
void (*to_goto_bookmark) (gdb_byte *, int);
|
||||||
/* Return the thread-local address at OFFSET in the
|
/* Return the thread-local address at OFFSET in the
|
||||||
|
@ -1572,7 +1572,7 @@ extern char *target_thread_name (struct thread_info *);
|
||||||
|
|
||||||
/* Bookmark interfaces. */
|
/* Bookmark interfaces. */
|
||||||
#define target_get_bookmark(ARGS, FROM_TTY) \
|
#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) \
|
#define target_goto_bookmark(ARG, FROM_TTY) \
|
||||||
(current_target.to_goto_bookmark) (ARG, FROM_TTY)
|
(current_target.to_goto_bookmark) (ARG, FROM_TTY)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue