mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
convert to_core_of_thread
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_core_of_thread): Unconditionally delegate. * target.h (struct target_ops) <to_core_of_thread>: Use TARGET_DEFAULT_RETURN.
This commit is contained in:
@ -1131,6 +1131,19 @@ tdefault_set_trace_notes (struct target_ops *self, const char *arg1, const char
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
delegate_core_of_thread (struct target_ops *self, ptid_t arg1)
|
||||
{
|
||||
self = self->beneath;
|
||||
return self->to_core_of_thread (self, arg1);
|
||||
}
|
||||
|
||||
static int
|
||||
tdefault_core_of_thread (struct target_ops *self, ptid_t arg1)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int
|
||||
delegate_get_tib_address (struct target_ops *self, ptid_t arg1, CORE_ADDR *arg2)
|
||||
{
|
||||
@ -1442,6 +1455,8 @@ install_delegators (struct target_ops *ops)
|
||||
ops->to_set_trace_buffer_size = delegate_set_trace_buffer_size;
|
||||
if (ops->to_set_trace_notes == NULL)
|
||||
ops->to_set_trace_notes = delegate_set_trace_notes;
|
||||
if (ops->to_core_of_thread == NULL)
|
||||
ops->to_core_of_thread = delegate_core_of_thread;
|
||||
if (ops->to_get_tib_address == NULL)
|
||||
ops->to_get_tib_address = delegate_get_tib_address;
|
||||
if (ops->to_set_permissions == NULL)
|
||||
@ -1561,6 +1576,7 @@ install_dummy_methods (struct target_ops *ops)
|
||||
ops->to_set_circular_trace_buffer = tdefault_set_circular_trace_buffer;
|
||||
ops->to_set_trace_buffer_size = tdefault_set_trace_buffer_size;
|
||||
ops->to_set_trace_notes = tdefault_set_trace_notes;
|
||||
ops->to_core_of_thread = tdefault_core_of_thread;
|
||||
ops->to_get_tib_address = tdefault_get_tib_address;
|
||||
ops->to_set_permissions = tdefault_set_permissions;
|
||||
ops->to_static_tracepoint_marker_at = tdefault_static_tracepoint_marker_at;
|
||||
|
Reference in New Issue
Block a user