forked from Imagelibrary/binutils-gdb
convert to_memory_map
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_memory_map): Unconditionally delegate. * target.h (struct target_ops) <to_memory_map>: Use TARGET_DEFAULT_RETURN.
This commit is contained in:
@@ -736,6 +736,19 @@ tdefault_xfer_partial (struct target_ops *self, enum target_object arg1, const
|
||||
return TARGET_XFER_E_IO;
|
||||
}
|
||||
|
||||
static VEC(mem_region_s) *
|
||||
delegate_memory_map (struct target_ops *self)
|
||||
{
|
||||
self = self->beneath;
|
||||
return self->to_memory_map (self);
|
||||
}
|
||||
|
||||
static VEC(mem_region_s) *
|
||||
tdefault_memory_map (struct target_ops *self)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
delegate_flash_erase (struct target_ops *self, ULONGEST arg1, LONGEST arg2)
|
||||
{
|
||||
@@ -1573,6 +1586,8 @@ install_delegators (struct target_ops *ops)
|
||||
ops->to_goto_bookmark = delegate_goto_bookmark;
|
||||
if (ops->to_xfer_partial == NULL)
|
||||
ops->to_xfer_partial = delegate_xfer_partial;
|
||||
if (ops->to_memory_map == NULL)
|
||||
ops->to_memory_map = delegate_memory_map;
|
||||
if (ops->to_flash_erase == NULL)
|
||||
ops->to_flash_erase = delegate_flash_erase;
|
||||
if (ops->to_flash_done == NULL)
|
||||
@@ -1754,6 +1769,7 @@ install_dummy_methods (struct target_ops *ops)
|
||||
ops->to_get_bookmark = tdefault_get_bookmark;
|
||||
ops->to_goto_bookmark = tdefault_goto_bookmark;
|
||||
ops->to_xfer_partial = tdefault_xfer_partial;
|
||||
ops->to_memory_map = tdefault_memory_map;
|
||||
ops->to_flash_erase = tdefault_flash_erase;
|
||||
ops->to_flash_done = tdefault_flash_done;
|
||||
ops->to_get_ada_task_ptid = default_get_ada_task_ptid;
|
||||
|
||||
Reference in New Issue
Block a user