diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-31 18:08:43 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-31 18:08:43 +0000 |
commit | b8edc417a7143d28618086f1d6d946201001a075 (patch) | |
tree | 694b87e4e1126829a06b05e9169f4771ecee0a4b /gdb/target.h | |
parent | cbd705375949178b1929fa12075ee9e8e0da7601 (diff) | |
download | gdb-b8edc417a7143d28618086f1d6d946201001a075.zip gdb-b8edc417a7143d28618086f1d6d946201001a075.tar.gz gdb-b8edc417a7143d28618086f1d6d946201001a075.tar.bz2 |
gdb/
Code cleanup.
* defs.h (find_memory_region_ftype): New typedef.
(exec_set_find_memory_regions): Use it.
* exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
* fbsd-nat.c (fbsd_find_memory_regions): Likewise.
* gcore.c (objfile_find_memory_regions): Likewise.
* gnu-nat.c (gnu_find_memory_regions): Likewise.
* linux-nat.c (linux_nat_find_memory_regions): Likewise.
* procfs.c (iterate_over_mappings_cb_ftype): Remove.
(iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
find_memory_region_ftype.
(insert_dbx_link_bpt_in_region): Likewise.
(iterate_over_mappings): Likewise. Drop the comment part about the
function prototype.
(find_memory_regions_callback): Use find_memory_region_ftype.
(proc_find_memory_regions): Likewise.
(info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
find_memory_region_ftype.
* target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
* target.h (struct target_ops) <to_find_memory_regions>: Likewise.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/target.h b/gdb/target.h index 7cedf8f..7290d90 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -504,11 +504,7 @@ struct target_ops int (*to_async_mask) (int); int (*to_supports_non_stop) (void); /* find_memory_regions support method for gcore */ - int (*to_find_memory_regions) (int (*) (CORE_ADDR, - unsigned long, - int, int, int, - void *), - void *); + int (*to_find_memory_regions) (find_memory_region_ftype func, void *data); /* make_corefile_notes support method for gcore */ char * (*to_make_corefile_notes) (bfd *, int *); /* get_bookmark support method for bookmarks */ |