OSDN Git Service

gdb/
authorjkratoch <jkratoch>
Tue, 31 Aug 2010 18:08:42 +0000 (18:08 +0000)
committerjkratoch <jkratoch>
Tue, 31 Aug 2010 18:08:42 +0000 (18:08 +0000)
commitbd19b9b91473d6505cdffb2d1336a539d98122d2
tree4c67e817f33e59323ab543335dcc3199bb115857
parenteba96ee67a495513548fd74797ff9980b08b4ade
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.
gdb/ChangeLog
gdb/defs.h
gdb/exec.c
gdb/fbsd-nat.c
gdb/gcore.c
gdb/gnu-nat.c
gdb/linux-nat.c
gdb/procfs.c
gdb/target.c
gdb/target.h