mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 23:57:03 +08:00
Add target_ops argument to to_trace_init
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_trace_init>: Add argument. (target_trace_init): Add argument. * target.c (update_current_target): Update. * remote.c (remote_trace_init): Add 'self' argument.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_trace_init>: Add argument.
|
||||||
|
(target_trace_init): Add argument.
|
||||||
|
* target.c (update_current_target): Update.
|
||||||
|
* remote.c (remote_trace_init): 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_fileio_readlink>: Add argument.
|
* target.h (struct target_ops) <to_fileio_readlink>: Add argument.
|
||||||
|
@ -10326,7 +10326,7 @@ remote_can_run_breakpoint_commands (struct target_ops *self)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
remote_trace_init (void)
|
remote_trace_init (struct target_ops *self)
|
||||||
{
|
{
|
||||||
putpkt ("QTinit");
|
putpkt ("QTinit");
|
||||||
remote_get_noisy_reply (&target_buf, &target_buf_size);
|
remote_get_noisy_reply (&target_buf, &target_buf_size);
|
||||||
|
@ -849,7 +849,7 @@ update_current_target (void)
|
|||||||
(int (*) (struct target_ops *))
|
(int (*) (struct target_ops *))
|
||||||
return_zero);
|
return_zero);
|
||||||
de_fault (to_trace_init,
|
de_fault (to_trace_init,
|
||||||
(void (*) (void))
|
(void (*) (struct target_ops *))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_download_tracepoint,
|
de_fault (to_download_tracepoint,
|
||||||
(void (*) (struct bp_location *))
|
(void (*) (struct bp_location *))
|
||||||
|
@ -756,7 +756,7 @@ struct target_ops
|
|||||||
/* Tracepoint-related operations. */
|
/* Tracepoint-related operations. */
|
||||||
|
|
||||||
/* Prepare the target for a tracing run. */
|
/* Prepare the target for a tracing run. */
|
||||||
void (*to_trace_init) (void);
|
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 bp_location *location);
|
||||||
@ -1781,7 +1781,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
|||||||
/* Tracepoint-related operations. */
|
/* Tracepoint-related operations. */
|
||||||
|
|
||||||
#define target_trace_init() \
|
#define target_trace_init() \
|
||||||
(*current_target.to_trace_init) ()
|
(*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)
|
||||||
|
Reference in New Issue
Block a user