diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:42:29 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:28 -0700 |
commit | ab6617cc1b3d544e14fdfb0df0ea21c0a7fcc5f4 (patch) | |
tree | 5dc9d0d8971e707598dd847772e1620e8215bb5b /gdb/remote.c | |
parent | dc3decafdd646f0f61f68322e56fb423e306efa9 (diff) | |
download | gdb-ab6617cc1b3d544e14fdfb0df0ea21c0a7fcc5f4.zip gdb-ab6617cc1b3d544e14fdfb0df0ea21c0a7fcc5f4.tar.gz gdb-ab6617cc1b3d544e14fdfb0df0ea21c0a7fcc5f4.tar.bz2 |
Add target_ops argument to to_upload_tracepoints
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_upload_tracepoints>: Add
argument.
(target_upload_tracepoints): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_upload_tracepoints): Add 'self' argument.
(remote_start_remote): Update.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index b518174..e514a7b 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -202,7 +202,8 @@ struct remote_state; static int remote_get_trace_status (struct target_ops *self, struct trace_status *ts); -static int remote_upload_tracepoints (struct uploaded_tp **utpp); +static int remote_upload_tracepoints (struct target_ops *self, + struct uploaded_tp **utpp); static int remote_upload_trace_state_variables (struct uploaded_tsv **utsvp); @@ -3614,7 +3615,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p) if (current_trace_status ()->running) printf_filtered (_("Trace is already running on the target.\n")); - remote_upload_tracepoints (&uploaded_tps); + remote_upload_tracepoints (target, &uploaded_tps); merge_uploaded_tracepoints (&uploaded_tps); } @@ -11651,7 +11652,7 @@ remote_new_objfile (struct objfile *objfile) collection. */ static int -remote_upload_tracepoints (struct uploaded_tp **utpp) +remote_upload_tracepoints (struct target_ops *self, struct uploaded_tp **utpp) { struct remote_state *rs = get_remote_state (); char *p; |