mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
convert to_save_trace_data
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_save_trace_data. * target.h (struct target_ops) <to_save_trace_data>: Use TARGET_DEFAULT_NORETURN.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target-delegates.c: Rebuild.
|
||||||
|
* target.c (update_current_target): Don't inherit or default
|
||||||
|
to_save_trace_data.
|
||||||
|
* target.h (struct target_ops) <to_save_trace_data>: Use
|
||||||
|
TARGET_DEFAULT_NORETURN.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target-delegates.c: Rebuild.
|
* target-delegates.c: Rebuild.
|
||||||
|
@ -806,6 +806,19 @@ tdefault_get_trace_state_variable_value (struct target_ops *self, int arg1, LONG
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
delegate_save_trace_data (struct target_ops *self, const char *arg1)
|
||||||
|
{
|
||||||
|
self = self->beneath;
|
||||||
|
return self->to_save_trace_data (self, arg1);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
tdefault_save_trace_data (struct target_ops *self, const char *arg1)
|
||||||
|
{
|
||||||
|
tcomplain ();
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
delegate_supports_btrace (struct target_ops *self)
|
delegate_supports_btrace (struct target_ops *self)
|
||||||
{
|
{
|
||||||
@ -960,6 +973,8 @@ install_delegators (struct target_ops *ops)
|
|||||||
ops->to_trace_find = delegate_trace_find;
|
ops->to_trace_find = delegate_trace_find;
|
||||||
if (ops->to_get_trace_state_variable_value == NULL)
|
if (ops->to_get_trace_state_variable_value == NULL)
|
||||||
ops->to_get_trace_state_variable_value = delegate_get_trace_state_variable_value;
|
ops->to_get_trace_state_variable_value = delegate_get_trace_state_variable_value;
|
||||||
|
if (ops->to_save_trace_data == NULL)
|
||||||
|
ops->to_save_trace_data = delegate_save_trace_data;
|
||||||
if (ops->to_supports_btrace == NULL)
|
if (ops->to_supports_btrace == NULL)
|
||||||
ops->to_supports_btrace = delegate_supports_btrace;
|
ops->to_supports_btrace = delegate_supports_btrace;
|
||||||
}
|
}
|
||||||
@ -1036,5 +1051,6 @@ install_dummy_methods (struct target_ops *ops)
|
|||||||
ops->to_trace_stop = tdefault_trace_stop;
|
ops->to_trace_stop = tdefault_trace_stop;
|
||||||
ops->to_trace_find = tdefault_trace_find;
|
ops->to_trace_find = tdefault_trace_find;
|
||||||
ops->to_get_trace_state_variable_value = tdefault_get_trace_state_variable_value;
|
ops->to_get_trace_state_variable_value = tdefault_get_trace_state_variable_value;
|
||||||
|
ops->to_save_trace_data = tdefault_save_trace_data;
|
||||||
ops->to_supports_btrace = tdefault_supports_btrace;
|
ops->to_supports_btrace = tdefault_supports_btrace;
|
||||||
}
|
}
|
||||||
|
@ -701,7 +701,7 @@ update_current_target (void)
|
|||||||
/* Do not inherit to_trace_stop. */
|
/* Do not inherit to_trace_stop. */
|
||||||
/* Do not inherit to_trace_find. */
|
/* Do not inherit to_trace_find. */
|
||||||
/* Do not inherit to_get_trace_state_variable_value. */
|
/* Do not inherit to_get_trace_state_variable_value. */
|
||||||
INHERIT (to_save_trace_data, t);
|
/* Do not inherit to_save_trace_data. */
|
||||||
INHERIT (to_upload_tracepoints, t);
|
INHERIT (to_upload_tracepoints, t);
|
||||||
INHERIT (to_upload_trace_state_variables, t);
|
INHERIT (to_upload_trace_state_variables, t);
|
||||||
INHERIT (to_get_raw_trace_data, t);
|
INHERIT (to_get_raw_trace_data, t);
|
||||||
@ -752,9 +752,6 @@ update_current_target (void)
|
|||||||
(void (*) (struct target_ops *, ptid_t))
|
(void (*) (struct target_ops *, ptid_t))
|
||||||
target_ignore);
|
target_ignore);
|
||||||
current_target.to_read_description = NULL;
|
current_target.to_read_description = NULL;
|
||||||
de_fault (to_save_trace_data,
|
|
||||||
(int (*) (struct target_ops *, const char *))
|
|
||||||
tcomplain);
|
|
||||||
de_fault (to_upload_tracepoints,
|
de_fault (to_upload_tracepoints,
|
||||||
(int (*) (struct target_ops *, struct uploaded_tp **))
|
(int (*) (struct target_ops *, struct uploaded_tp **))
|
||||||
return_zero);
|
return_zero);
|
||||||
|
@ -869,7 +869,8 @@ struct target_ops
|
|||||||
int tsv, LONGEST *val)
|
int tsv, LONGEST *val)
|
||||||
TARGET_DEFAULT_RETURN (0);
|
TARGET_DEFAULT_RETURN (0);
|
||||||
|
|
||||||
int (*to_save_trace_data) (struct target_ops *, const char *filename);
|
int (*to_save_trace_data) (struct target_ops *, const char *filename)
|
||||||
|
TARGET_DEFAULT_NORETURN (tcomplain ());
|
||||||
|
|
||||||
int (*to_upload_tracepoints) (struct target_ops *,
|
int (*to_upload_tracepoints) (struct target_ops *,
|
||||||
struct uploaded_tp **utpp);
|
struct uploaded_tp **utpp);
|
||||||
|
Reference in New Issue
Block a user