mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
convert to_get_min_fast_tracepoint_insn_len
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_get_min_fast_tracepoint_insn_len. (return_minus_one): Remove. * target.h (struct target_ops) <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
This commit is contained in:
@ -858,6 +858,19 @@ tdefault_get_raw_trace_data (struct target_ops *self, gdb_byte *arg1, ULONGEST a
|
||||
tcomplain ();
|
||||
}
|
||||
|
||||
static int
|
||||
delegate_get_min_fast_tracepoint_insn_len (struct target_ops *self)
|
||||
{
|
||||
self = self->beneath;
|
||||
return self->to_get_min_fast_tracepoint_insn_len (self);
|
||||
}
|
||||
|
||||
static int
|
||||
tdefault_get_min_fast_tracepoint_insn_len (struct target_ops *self)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int
|
||||
delegate_supports_btrace (struct target_ops *self)
|
||||
{
|
||||
@ -1020,6 +1033,8 @@ install_delegators (struct target_ops *ops)
|
||||
ops->to_upload_trace_state_variables = delegate_upload_trace_state_variables;
|
||||
if (ops->to_get_raw_trace_data == NULL)
|
||||
ops->to_get_raw_trace_data = delegate_get_raw_trace_data;
|
||||
if (ops->to_get_min_fast_tracepoint_insn_len == NULL)
|
||||
ops->to_get_min_fast_tracepoint_insn_len = delegate_get_min_fast_tracepoint_insn_len;
|
||||
if (ops->to_supports_btrace == NULL)
|
||||
ops->to_supports_btrace = delegate_supports_btrace;
|
||||
}
|
||||
@ -1100,5 +1115,6 @@ install_dummy_methods (struct target_ops *ops)
|
||||
ops->to_upload_tracepoints = tdefault_upload_tracepoints;
|
||||
ops->to_upload_trace_state_variables = tdefault_upload_trace_state_variables;
|
||||
ops->to_get_raw_trace_data = tdefault_get_raw_trace_data;
|
||||
ops->to_get_min_fast_tracepoint_insn_len = tdefault_get_min_fast_tracepoint_insn_len;
|
||||
ops->to_supports_btrace = tdefault_supports_btrace;
|
||||
}
|
||||
|
Reference in New Issue
Block a user