diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:35:39 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:59 -0700 |
commit | 2e73927ca515996146d2b20d8e6f0b39c0a51b29 (patch) | |
tree | 5f2f00259327d580f60785313c0800bee4351830 /gdb/target.c | |
parent | 2a9a2795ff9602bd1f03b9e55b4c15de3241d384 (diff) | |
download | binutils-2e73927ca515996146d2b20d8e6f0b39c0a51b29.zip binutils-2e73927ca515996146d2b20d8e6f0b39c0a51b29.tar.gz binutils-2e73927ca515996146d2b20d8e6f0b39c0a51b29.tar.bz2 |
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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c index 0fc4e86..fd4f62d 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3770,7 +3770,8 @@ dummy_pid_to_str (struct target_ops *ops, ptid_t ptid) /* Error-catcher for target_find_memory_regions. */ static int -dummy_find_memory_regions (find_memory_region_ftype ignore1, void *ignore2) +dummy_find_memory_regions (struct target_ops *self, + find_memory_region_ftype ignore1, void *ignore2) { error (_("Command not implemented for this target.")); return 0; |