mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
Add target_ops argument to to_trace_start
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_trace_start>: Add argument. (target_trace_start): Add argument. * target.c (update_current_target): Update. * remote.c (remote_trace_start): 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_start>: Add argument.
|
||||||
|
(target_trace_start): Add argument.
|
||||||
|
* target.c (update_current_target): Update.
|
||||||
|
* remote.c (remote_trace_start): 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_set_readonly_regions>:
|
* target.h (struct target_ops) <to_trace_set_readonly_regions>:
|
||||||
|
@ -10711,7 +10711,7 @@ Too many sections for read-only sections definition packet."));
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
remote_trace_start (void)
|
remote_trace_start (struct target_ops *self)
|
||||||
{
|
{
|
||||||
putpkt ("QTStart");
|
putpkt ("QTStart");
|
||||||
remote_get_noisy_reply (&target_buf, &target_buf_size);
|
remote_get_noisy_reply (&target_buf, &target_buf_size);
|
||||||
|
@ -870,7 +870,7 @@ update_current_target (void)
|
|||||||
(void (*) (struct target_ops *))
|
(void (*) (struct target_ops *))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_trace_start,
|
de_fault (to_trace_start,
|
||||||
(void (*) (void))
|
(void (*) (struct target_ops *))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_get_trace_status,
|
de_fault (to_get_trace_status,
|
||||||
(int (*) (struct trace_status *))
|
(int (*) (struct trace_status *))
|
||||||
|
@ -784,7 +784,7 @@ struct target_ops
|
|||||||
void (*to_trace_set_readonly_regions) (struct target_ops *);
|
void (*to_trace_set_readonly_regions) (struct target_ops *);
|
||||||
|
|
||||||
/* Start a trace run. */
|
/* Start a trace run. */
|
||||||
void (*to_trace_start) (void);
|
void (*to_trace_start) (struct target_ops *);
|
||||||
|
|
||||||
/* Get the current status of a tracing run. */
|
/* Get the current status of a tracing run. */
|
||||||
int (*to_get_trace_status) (struct trace_status *ts);
|
int (*to_get_trace_status) (struct trace_status *ts);
|
||||||
@ -1803,7 +1803,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
|||||||
(*current_target.to_disable_tracepoint) (¤t_target, loc)
|
(*current_target.to_disable_tracepoint) (¤t_target, loc)
|
||||||
|
|
||||||
#define target_trace_start() \
|
#define target_trace_start() \
|
||||||
(*current_target.to_trace_start) ()
|
(*current_target.to_trace_start) (¤t_target)
|
||||||
|
|
||||||
#define target_trace_set_readonly_regions() \
|
#define target_trace_set_readonly_regions() \
|
||||||
(*current_target.to_trace_set_readonly_regions) (¤t_target)
|
(*current_target.to_trace_set_readonly_regions) (¤t_target)
|
||||||
|
Reference in New Issue
Block a user