convert to_make_corefile_notes
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_make_corefile_notes. (init_dummy_target): Don't initialize to_make_corefile_notes. * target.h (struct target_ops) <to_make_corefile_notes>: Use TARGET_DEFAULT_FUNC.
This commit is contained in:
parent
0b5a271985
commit
16f796b16a
4 changed files with 25 additions and 3 deletions
|
@ -518,6 +518,13 @@ delegate_find_memory_regions (struct target_ops *self, find_memory_region_ftype
|
|||
return self->to_find_memory_regions (self, arg1, arg2);
|
||||
}
|
||||
|
||||
static char *
|
||||
delegate_make_corefile_notes (struct target_ops *self, bfd *arg1, int *arg2)
|
||||
{
|
||||
self = self->beneath;
|
||||
return self->to_make_corefile_notes (self, arg1, arg2);
|
||||
}
|
||||
|
||||
static enum target_xfer_status
|
||||
delegate_xfer_partial (struct target_ops *self, enum target_object arg1, const char *arg2, gdb_byte *arg3, const gdb_byte *arg4, ULONGEST arg5, ULONGEST arg6, ULONGEST *arg7)
|
||||
{
|
||||
|
@ -637,6 +644,8 @@ install_delegators (struct target_ops *ops)
|
|||
ops->to_async = delegate_async;
|
||||
if (ops->to_find_memory_regions == NULL)
|
||||
ops->to_find_memory_regions = delegate_find_memory_regions;
|
||||
if (ops->to_make_corefile_notes == NULL)
|
||||
ops->to_make_corefile_notes = delegate_make_corefile_notes;
|
||||
if (ops->to_xfer_partial == NULL)
|
||||
ops->to_xfer_partial = delegate_xfer_partial;
|
||||
if (ops->to_supports_btrace == NULL)
|
||||
|
@ -691,6 +700,7 @@ install_dummy_methods (struct target_ops *ops)
|
|||
ops->to_is_async_p = find_default_is_async_p;
|
||||
ops->to_async = tdefault_async;
|
||||
ops->to_find_memory_regions = dummy_find_memory_regions;
|
||||
ops->to_make_corefile_notes = dummy_make_corefile_notes;
|
||||
ops->to_xfer_partial = tdefault_xfer_partial;
|
||||
ops->to_supports_btrace = tdefault_supports_btrace;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue