diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:45:35 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:42 -0700 |
commit | e3c49f88a28ae59ca4d339fac721719038da746d (patch) | |
tree | 11c42df36c8b72a3bcb8a7c96b445489ac72eb43 | |
parent | fe38f8971f81ab42937d4c22f85bba5d8e48ada9 (diff) | |
download | gdb-e3c49f88a28ae59ca4d339fac721719038da746d.zip gdb-e3c49f88a28ae59ca4d339fac721719038da746d.tar.gz gdb-e3c49f88a28ae59ca4d339fac721719038da746d.tar.bz2 |
Add target_ops argument to to_enable_btrace
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_enable_btrace>: Add argument.
* target.c (target_enable_btrace): Add argument.
* remote.c (remote_enable_btrace): Add 'self' argument.
* i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
argument.
* amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
argument.
-rw-r--r-- | gdb/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/amd64-linux-nat.c | 2 | ||||
-rw-r--r-- | gdb/i386-linux-nat.c | 2 | ||||
-rw-r--r-- | gdb/remote.c | 2 | ||||
-rw-r--r-- | gdb/target.c | 2 | ||||
-rw-r--r-- | gdb/target.h | 3 |
6 files changed, 16 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 811a100..d36e75a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_enable_btrace>: Add argument. + * target.c (target_enable_btrace): Add argument. + * remote.c (remote_enable_btrace): Add 'self' argument. + * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self' + argument. + * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self' + argument. + +2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_can_use_agent>: Add argument. (target_can_use_agent): Add argument. * target.c (update_current_target): Update. diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c index af84142..51f0476 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c @@ -1150,7 +1150,7 @@ amd64_linux_read_description (struct target_ops *ops) /* Enable branch tracing. */ static struct btrace_target_info * -amd64_linux_enable_btrace (ptid_t ptid) +amd64_linux_enable_btrace (struct target_ops *self, ptid_t ptid) { struct btrace_target_info *tinfo; struct gdbarch *gdbarch; diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index f7be40c..8d6d929 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -1061,7 +1061,7 @@ i386_linux_read_description (struct target_ops *ops) /* Enable branch tracing. */ static struct btrace_target_info * -i386_linux_enable_btrace (ptid_t ptid) +i386_linux_enable_btrace (struct target_ops *self, ptid_t ptid) { struct btrace_target_info *tinfo; struct gdbarch *gdbarch; diff --git a/gdb/remote.c b/gdb/remote.c index 03fd1c0..b2a7992 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -11243,7 +11243,7 @@ remote_supports_btrace (struct target_ops *self) /* Enable branch tracing. */ static struct btrace_target_info * -remote_enable_btrace (ptid_t ptid) +remote_enable_btrace (struct target_ops *self, ptid_t ptid) { struct btrace_target_info *tinfo = NULL; struct packet_config *packet = &remote_protocol_packets[PACKET_Qbtrace_bts]; diff --git a/gdb/target.c b/gdb/target.c index 0a52b9e..be42e0c 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4199,7 +4199,7 @@ target_enable_btrace (ptid_t ptid) for (t = current_target.beneath; t != NULL; t = t->beneath) if (t->to_enable_btrace != NULL) - return t->to_enable_btrace (ptid); + return t->to_enable_btrace (t, ptid); tcomplain (); return NULL; diff --git a/gdb/target.h b/gdb/target.h index 512a930..8356394 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -903,7 +903,8 @@ struct target_ops /* Enable branch tracing for PTID and allocate a branch trace target information struct for reading and for disabling branch trace. */ - struct btrace_target_info *(*to_enable_btrace) (ptid_t ptid); + struct btrace_target_info *(*to_enable_btrace) (struct target_ops *, + ptid_t ptid); /* Disable branch tracing and deallocate TINFO. */ void (*to_disable_btrace) (struct btrace_target_info *tinfo); |