aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:43:31 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:33 -0700
commit736d5b1fc4ea1aff32957d79fd502dc0914319bb (patch)
treef6ee62be0fdcef5ddd4a591faf6185195d6314fc /gdb
parent37b2573848cf7157a62da3d6dfb5a546c795121a (diff)
downloadgdb-736d5b1fc4ea1aff32957d79fd502dc0914319bb.zip
gdb-736d5b1fc4ea1aff32957d79fd502dc0914319bb.tar.gz
gdb-736d5b1fc4ea1aff32957d79fd502dc0914319bb.tar.bz2
Add target_ops argument to to_set_circular_trace_buffer
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add argument. (target_set_circular_trace_buffer): Add argument. * target.c (update_current_target): Update. * remote.c (remote_set_circular_trace_buffer): Add 'self' argument.
Diffstat (limited to 'gdb')
-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 8a1304e..5275b31 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_set_circular_trace_buffer>: Add
+ argument.
+ (target_set_circular_trace_buffer): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_set_circular_trace_buffer): Add 'self'
+ argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_set_disconnected_tracing>: Add
argument.
(target_set_disconnected_tracing): Add argument.
diff --git a/gdb/remote.c b/gdb/remote.c
index 950937c..8e1c242 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -11038,7 +11038,7 @@ remote_core_of_thread (struct target_ops *ops, ptid_t ptid)
}
static void
-remote_set_circular_trace_buffer (int val)
+remote_set_circular_trace_buffer (struct target_ops *self, int val)
{
struct remote_state *rs = get_remote_state ();
char *reply;
diff --git a/gdb/target.c b/gdb/target.c
index 73ee86e..9e6e749 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -908,7 +908,7 @@ update_current_target (void)
(void (*) (struct target_ops *, int))
target_ignore);
de_fault (to_set_circular_trace_buffer,
- (void (*) (int))
+ (void (*) (struct target_ops *, int))
target_ignore);
de_fault (to_set_trace_buffer_size,
(void (*) (LONGEST))
diff --git a/gdb/target.h b/gdb/target.h
index 26c2288..3c43d5b 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -831,7 +831,7 @@ struct target_ops
/* Set the target's tracing behavior in response to unexpected
disconnection - set VAL to 1 to keep tracing, 0 to stop. */
void (*to_set_disconnected_tracing) (struct target_ops *, int val);
- void (*to_set_circular_trace_buffer) (int val);
+ void (*to_set_circular_trace_buffer) (struct target_ops *, int val);
/* Set the size of trace buffer in the target. */
void (*to_set_trace_buffer_size) (LONGEST val);
@@ -1850,7 +1850,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
(*current_target.to_set_disconnected_tracing) (&current_target, val)
#define target_set_circular_trace_buffer(val) \
- (*current_target.to_set_circular_trace_buffer) (val)
+ (*current_target.to_set_circular_trace_buffer) (&current_target, val)
#define target_set_trace_buffer_size(val) \
(*current_target.to_set_trace_buffer_size) (val)