convert to_set_disconnected_tracing
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_set_disconnected_tracing. * target.h (struct target_ops) <to_set_disconnected_tracing>: Use TARGET_DEFAULT_IGNORE.
This commit is contained in:
parent
9249843f19
commit
0bcfeddf50
4 changed files with 26 additions and 5 deletions
|
@ -871,6 +871,18 @@ tdefault_get_min_fast_tracepoint_insn_len (struct target_ops *self)
|
|||
return -1;
|
||||
}
|
||||
|
||||
static void
|
||||
delegate_set_disconnected_tracing (struct target_ops *self, int arg1)
|
||||
{
|
||||
self = self->beneath;
|
||||
self->to_set_disconnected_tracing (self, arg1);
|
||||
}
|
||||
|
||||
static void
|
||||
tdefault_set_disconnected_tracing (struct target_ops *self, int arg1)
|
||||
{
|
||||
}
|
||||
|
||||
static int
|
||||
delegate_supports_btrace (struct target_ops *self)
|
||||
{
|
||||
|
@ -1035,6 +1047,8 @@ install_delegators (struct target_ops *ops)
|
|||
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_set_disconnected_tracing == NULL)
|
||||
ops->to_set_disconnected_tracing = delegate_set_disconnected_tracing;
|
||||
if (ops->to_supports_btrace == NULL)
|
||||
ops->to_supports_btrace = delegate_supports_btrace;
|
||||
}
|
||||
|
@ -1116,5 +1130,6 @@ install_dummy_methods (struct target_ops *ops)
|
|||
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_set_disconnected_tracing = tdefault_set_disconnected_tracing;
|
||||
ops->to_supports_btrace = tdefault_supports_btrace;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue