mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
Add target_ops argument to to_get_min_fast_tracepoint_insn_len
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_get_min_fast_tracepoint_insn_len>: Add argument. (target_get_min_fast_tracepoint_insn_len): Add argument. * target.c (update_current_target): Update. * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self' argument.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops)
|
||||||
|
<to_get_min_fast_tracepoint_insn_len>: Add argument.
|
||||||
|
(target_get_min_fast_tracepoint_insn_len): Add argument.
|
||||||
|
* target.c (update_current_target): Update.
|
||||||
|
* remote.c (remote_get_min_fast_tracepoint_insn_len): 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_get_raw_trace_data>: Add
|
* target.h (struct target_ops) <to_get_raw_trace_data>: Add
|
||||||
|
@ -11083,7 +11083,7 @@ remote_traceframe_info (void)
|
|||||||
length is unknown. */
|
length is unknown. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
remote_get_min_fast_tracepoint_insn_len (void)
|
remote_get_min_fast_tracepoint_insn_len (struct target_ops *self)
|
||||||
{
|
{
|
||||||
struct remote_state *rs = get_remote_state ();
|
struct remote_state *rs = get_remote_state ();
|
||||||
char *reply;
|
char *reply;
|
||||||
|
@ -902,7 +902,7 @@ update_current_target (void)
|
|||||||
(LONGEST (*) (struct target_ops *, gdb_byte *, ULONGEST, LONGEST))
|
(LONGEST (*) (struct target_ops *, gdb_byte *, ULONGEST, LONGEST))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_get_min_fast_tracepoint_insn_len,
|
de_fault (to_get_min_fast_tracepoint_insn_len,
|
||||||
(int (*) (void))
|
(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 (*) (int))
|
||||||
|
@ -826,7 +826,7 @@ struct target_ops
|
|||||||
may be set on the target. If this operation is unsupported,
|
may be set on the target. If this operation is unsupported,
|
||||||
return -1. If for some reason the minimum length cannot be
|
return -1. If for some reason the minimum length cannot be
|
||||||
determined, return 0. */
|
determined, return 0. */
|
||||||
int (*to_get_min_fast_tracepoint_insn_len) (void);
|
int (*to_get_min_fast_tracepoint_insn_len) (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. */
|
||||||
@ -1844,7 +1844,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
|||||||
(buf), (offset), (len))
|
(buf), (offset), (len))
|
||||||
|
|
||||||
#define target_get_min_fast_tracepoint_insn_len() \
|
#define target_get_min_fast_tracepoint_insn_len() \
|
||||||
(*current_target.to_get_min_fast_tracepoint_insn_len) ()
|
(*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) (val)
|
||||||
|
Reference in New Issue
Block a user