OSDN Git Service

2001-12-28 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@specifix.com>
Thu, 3 Jan 2002 20:50:25 +0000 (20:50 +0000)
committerMichael Snyder <msnyder@specifix.com>
Thu, 3 Jan 2002 20:50:25 +0000 (20:50 +0000)
commit63b9cfab5b9299337d55037181cec28d2303f2a0
tree6c8d5f3a776a62635013111989522fffec9e0ac5
parentaeeccd7a34ad76cc0da66fbfdc7bf1c43e170473
2001-12-28  Michael Snyder  <msnyder@redhat.com>

Abstract the functionality of iterating over mapped memory
regions into a general purpose iterator function.
* procfs.c (iterate_over_mappings): New function, general purpose
iterator for memory sections.
(proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
(solib_mappings_callback): New function, callback for above.
(info_proc_mappings): Reimpliment using iterate_over_mappings.
(info_mappings_callback): New function, callback for above.

* procfs.c (proc_set_watchpoint): Add cast to suppress warning.
gdb/ChangeLog-2001
gdb/procfs.c