mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Add target_ops argument to to_find_memory_regions
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_find_memory_regions>: Add argument. (target_find_memory_regions): Add argument. * target.c (dummy_find_memory_regions): Add 'self' argument. * procfs.c (proc_find_memory_regions): Add 'self' argument. * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument. * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument. * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument. * exec. (exec_do_find_memory_regions): New global. (exec_set_find_memory_regions): Rewrite. (exec_find_memory_regions): New function. (init_exec_ops): Use exec_find_memory_regions.
This commit is contained in:
@@ -2545,7 +2545,8 @@ gnu_xfer_partial (struct target_ops *ops, enum target_object object,
|
||||
|
||||
/* Call FUNC on each memory region in the task. */
|
||||
static int
|
||||
gnu_find_memory_regions (find_memory_region_ftype func, void *data)
|
||||
gnu_find_memory_regions (struct target_ops *self,
|
||||
find_memory_region_ftype func, void *data)
|
||||
{
|
||||
error_t err;
|
||||
task_t task;
|
||||
|
||||
Reference in New Issue
Block a user