2001-12-28 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 3 Jan 2002 20:50:25 +0000 (20:50 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 3 Jan 2002 20:50:25 +0000 (20:50 +0000)
commit831e682efed7d11695f65c9148f40b81da1d121b
tree8b82d59c75a296ccd9750fa64899939dfdb00025
parent51c5503ba726b734a9b6011dcfdeb5e95c06f1a6
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