mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
Add target_ops argument to to_set_disconnected_tracing
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. * target.c (update_current_target): Update. * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
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.
|
||||||
|
* target.c (update_current_target): Update.
|
||||||
|
* remote.c (remote_set_disconnected_tracing): Add 'self' argument.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops)
|
* target.h (struct target_ops)
|
||||||
|
@ -11007,7 +11007,7 @@ remote_get_raw_trace_data (struct target_ops *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
remote_set_disconnected_tracing (int val)
|
remote_set_disconnected_tracing (struct target_ops *self, int val)
|
||||||
{
|
{
|
||||||
struct remote_state *rs = get_remote_state ();
|
struct remote_state *rs = get_remote_state ();
|
||||||
|
|
||||||
|
@ -905,7 +905,7 @@ update_current_target (void)
|
|||||||
(int (*) (struct target_ops *))
|
(int (*) (struct target_ops *))
|
||||||
return_minus_one);
|
return_minus_one);
|
||||||
de_fault (to_set_disconnected_tracing,
|
de_fault (to_set_disconnected_tracing,
|
||||||
(void (*) (int))
|
(void (*) (struct target_ops *, int))
|
||||||
target_ignore);
|
target_ignore);
|
||||||
de_fault (to_set_circular_trace_buffer,
|
de_fault (to_set_circular_trace_buffer,
|
||||||
(void (*) (int))
|
(void (*) (int))
|
||||||
|
@ -830,7 +830,7 @@ struct target_ops
|
|||||||
|
|
||||||
/* Set the target's tracing behavior in response to unexpected
|
/* Set the target's tracing behavior in response to unexpected
|
||||||
disconnection - set VAL to 1 to keep tracing, 0 to stop. */
|
disconnection - set VAL to 1 to keep tracing, 0 to stop. */
|
||||||
void (*to_set_disconnected_tracing) (int val);
|
void (*to_set_disconnected_tracing) (struct target_ops *, int val);
|
||||||
void (*to_set_circular_trace_buffer) (int val);
|
void (*to_set_circular_trace_buffer) (int val);
|
||||||
/* Set the size of trace buffer in the target. */
|
/* Set the size of trace buffer in the target. */
|
||||||
void (*to_set_trace_buffer_size) (LONGEST val);
|
void (*to_set_trace_buffer_size) (LONGEST val);
|
||||||
@ -1847,7 +1847,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
|||||||
(*current_target.to_get_min_fast_tracepoint_insn_len) (¤t_target)
|
(*current_target.to_get_min_fast_tracepoint_insn_len) (¤t_target)
|
||||||
|
|
||||||
#define target_set_disconnected_tracing(val) \
|
#define target_set_disconnected_tracing(val) \
|
||||||
(*current_target.to_set_disconnected_tracing) (val)
|
(*current_target.to_set_disconnected_tracing) (¤t_target, val)
|
||||||
|
|
||||||
#define target_set_circular_trace_buffer(val) \
|
#define target_set_circular_trace_buffer(val) \
|
||||||
(*current_target.to_set_circular_trace_buffer) (val)
|
(*current_target.to_set_circular_trace_buffer) (val)
|
||||||
|
Reference in New Issue
Block a user