aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
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 /gdb/target.h
parent86ce266821fee1fd9af0f00862857b25f9caf4e6 (diff)
downloadbinutils-7d178d6aa5a0f88080be7a0b7ebc03fc8b6262fc.zip
binutils-7d178d6aa5a0f88080be7a0b7ebc03fc8b6262fc.tar.gz
binutils-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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h4
1 files changed, 2 insertions, 2 deletions
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) ()