Add target_ops argument to to_download_tracepoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_download_tracepoint>: Add argument. (target_download_tracepoint): Add argument. * target.c (update_current_target): Update. * remote.c (remote_download_tracepoint): Add 'self' argument.
This commit is contained in:
parent
ecae04e1df
commit
548f7808ad
4 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_download_tracepoint>: Add
|
||||||
|
argument.
|
||||||
|
(target_download_tracepoint): Add argument.
|
||||||
|
* target.c (update_current_target): Update.
|
||||||
|
* remote.c (remote_download_tracepoint): Add 'self' argument.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_trace_init>: Add argument.
|
* target.h (struct target_ops) <to_trace_init>: Add argument.
|
||||||
|
|
|
@ -10397,7 +10397,7 @@ remote_download_command_source (int num, ULONGEST addr,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
remote_download_tracepoint (struct bp_location *loc)
|
remote_download_tracepoint (struct target_ops *self, struct bp_location *loc)
|
||||||
{
|
{
|
||||||
#define BUF_SIZE 2048
|
#define BUF_SIZE 2048
|
||||||
|
|
||||||
|
|
|
@ -852,7 +852,7 @@ update_current_target (void)
|
||||||
(void (*) (struct target_ops *))
|
(void (*) (struct target_ops *))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_download_tracepoint,
|
de_fault (to_download_tracepoint,
|
||||||
(void (*) (struct bp_location *))
|
(void (*) (struct target_ops *, struct bp_location *))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_can_download_tracepoint,
|
de_fault (to_can_download_tracepoint,
|
||||||
(int (*) (void))
|
(int (*) (void))
|
||||||
|
|
|
@ -759,7 +759,8 @@ struct target_ops
|
||||||
void (*to_trace_init) (struct target_ops *);
|
void (*to_trace_init) (struct target_ops *);
|
||||||
|
|
||||||
/* Send full details of a tracepoint location to the target. */
|
/* Send full details of a tracepoint location to the target. */
|
||||||
void (*to_download_tracepoint) (struct bp_location *location);
|
void (*to_download_tracepoint) (struct target_ops *,
|
||||||
|
struct bp_location *location);
|
||||||
|
|
||||||
/* Is the target able to download tracepoint locations in current
|
/* Is the target able to download tracepoint locations in current
|
||||||
state? */
|
state? */
|
||||||
|
@ -1784,7 +1785,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
||||||
(*current_target.to_trace_init) (¤t_target)
|
(*current_target.to_trace_init) (¤t_target)
|
||||||
|
|
||||||
#define target_download_tracepoint(t) \
|
#define target_download_tracepoint(t) \
|
||||||
(*current_target.to_download_tracepoint) (t)
|
(*current_target.to_download_tracepoint) (¤t_target, t)
|
||||||
|
|
||||||
#define target_can_download_tracepoint() \
|
#define target_can_download_tracepoint() \
|
||||||
(*current_target.to_can_download_tracepoint) ()
|
(*current_target.to_can_download_tracepoint) ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue