aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:37:19 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:06 -0700
commit7d178d6aa5a0f88080be7a0b7ebc03fc8b6262fc (patch)
tree8b6c8f5a1e3c14d47022fd8a6d2aa5545a4f40f6
parent86ce266821fee1fd9af0f00862857b25f9caf4e6 (diff)
downloadgdb-7d178d6aa5a0f88080be7a0b7ebc03fc8b6262fc.zip
gdb-7d178d6aa5a0f88080be7a0b7ebc03fc8b6262fc.tar.gz
gdb-7d178d6aa5a0f88080be7a0b7ebc03fc8b6262fc.tar.bz2
Add target_ops argument to to_supports_enable_disable_tracepoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_supports_enable_disable_tracepoint>: Add argument. (target_supports_enable_disable_tracepoint): Add argument. * target.c (update_current_target): Update. * remote.c (remote_supports_enable_disable_tracepoint): Add 'self' argument.
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h4
4 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index eeef934..ad04f80 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops)
+ <to_supports_enable_disable_tracepoint>: Add argument.
+ (target_supports_enable_disable_tracepoint): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
+ argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_supports_multi_process>: Add
argument.
(target_supports_multi_process): Add argument.
diff --git a/gdb/remote.c b/gdb/remote.c
index 72e4771..77a5166 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10290,7 +10290,7 @@ remote_supports_install_in_trace (void)
}
static int
-remote_supports_enable_disable_tracepoint (void)
+remote_supports_enable_disable_tracepoint (struct target_ops *self)
{
struct remote_state *rs = get_remote_state ();
diff --git a/gdb/target.c b/gdb/target.c
index 768b911..f65f8be 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -843,7 +843,7 @@ update_current_target (void)
(int (*) (struct target_ops *))
return_zero);
de_fault (to_supports_enable_disable_tracepoint,
- (int (*) (void))
+ (int (*) (struct target_ops *))
return_zero);
de_fault (to_supports_string_tracing,
(int (*) (void))
diff --git a/gdb/target.h b/gdb/target.h
index cb58f4c..a196fe4 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -676,7 +676,7 @@ struct target_ops
/* Does this target support enabling and disabling tracepoints while a trace
experiment is running? */
- int (*to_supports_enable_disable_tracepoint) (void);
+ int (*to_supports_enable_disable_tracepoint) (struct target_ops *);
/* Does this target support disabling address space randomization? */
int (*to_supports_disable_randomization) (void);
@@ -1114,7 +1114,7 @@ int target_supports_disable_randomization (void);
while a trace experiment is running. */
#define target_supports_enable_disable_tracepoint() \
- (*current_target.to_supports_enable_disable_tracepoint) ()
+ (*current_target.to_supports_enable_disable_tracepoint) (&current_target)
#define target_supports_string_tracing() \
(*current_target.to_supports_string_tracing) ()