aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:37:44 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:07 -0700
commit6de37a3aae4e37be2ea2ba8f9141ba63937f2c48 (patch)
tree35a0b4c55f0d346f0169bbb7ff3d196df96fb3e2
parent2bfc0540a2dd04b011509c9cd8d0db695f7cc115 (diff)
downloadgdb-6de37a3aae4e37be2ea2ba8f9141ba63937f2c48.zip
gdb-6de37a3aae4e37be2ea2ba8f9141ba63937f2c48.tar.gz
gdb-6de37a3aae4e37be2ea2ba8f9141ba63937f2c48.tar.bz2
Add target_ops argument to to_supports_string_tracing
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_supports_string_tracing>: Add argument. (target_supports_string_tracing): Add argument. * target.c (update_current_target): Update. * remote.c (remote_supports_string_tracing): Add 'self' argument.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h4
4 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9d11dff..af9419d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops) <to_supports_string_tracing>: Add
+ argument.
+ (target_supports_string_tracing): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_supports_string_tracing): Add 'self' argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops)
<to_supports_disable_randomization>: Add argument.
* target.c (find_default_supports_disable_randomization): Add
diff --git a/gdb/remote.c b/gdb/remote.c
index 60d505f..1f62b8d 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10298,7 +10298,7 @@ remote_supports_enable_disable_tracepoint (struct target_ops *self)
}
static int
-remote_supports_string_tracing (void)
+remote_supports_string_tracing (struct target_ops *self)
{
struct remote_state *rs = get_remote_state ();
diff --git a/gdb/target.c b/gdb/target.c
index 26d1074..5ff1174 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -846,7 +846,7 @@ update_current_target (void)
(int (*) (struct target_ops *))
return_zero);
de_fault (to_supports_string_tracing,
- (int (*) (void))
+ (int (*) (struct target_ops *))
return_zero);
de_fault (to_trace_init,
(void (*) (void))
diff --git a/gdb/target.h b/gdb/target.h
index c25235b..9ad6d4d 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -682,7 +682,7 @@ struct target_ops
int (*to_supports_disable_randomization) (struct target_ops *);
/* Does this target support the tracenz bytecode for string collection? */
- int (*to_supports_string_tracing) (void);
+ int (*to_supports_string_tracing) (struct target_ops *);
/* Does this target support evaluation of breakpoint conditions on its
end? */
@@ -1117,7 +1117,7 @@ int target_supports_disable_randomization (void);
(*current_target.to_supports_enable_disable_tracepoint) (&current_target)
#define target_supports_string_tracing() \
- (*current_target.to_supports_string_tracing) ()
+ (*current_target.to_supports_string_tracing) (&current_target)
/* Returns true if this target can handle breakpoint conditions
on its end. */