This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Code cleanup: Make function typedef for find memory region
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 31 Aug 2010 10:33:28 -0700
- Subject: Re: [patch] Code cleanup: Make function typedef for find memory region
- References: <20100830085953.GA25961@host1.dyn.jankratochvil.net>
> gdb/
> 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> Code cleanup.
> * defs.h (find_memory_region_t): New typedef.
> (exec_set_find_memory_regions): Use it.
> * exec.c (exec_set_find_memory_regions): Use find_memory_region_t.
> * 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_t.
> (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_t.
> (proc_find_memory_regions): Likewise.
> (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
> find_memory_region_t.
> * target.c (dummy_find_memory_regions): Use find_memory_region_t.
> * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
Given the various comments so far, this patch is OK with the type
renamed to find_memory_region_ftype.
--
Joel