summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2009-06-07 17:58:24 +0000
committerPedro Alves <pedro@codesourcery.com>2009-06-07 17:58:24 +0000
commit074f3a486ea46e1d067453576539e040f985d604 (patch)
treeb002ad48a65cff5a89e7b586652070c7e688a84b /gdb
parentbc01dce949f1ec4ce53ca670b683adaede5d1b87 (diff)
downloadgdb-074f3a486ea46e1d067453576539e040f985d604.tar.gz
* inferior.h (proc_iterate_over_mappings): Delete declaration.
* nto-tdep.h (proc_iterate_over_mappings): Delete declaration. * procfs.c (proc_iterate_over_mappings): Delete.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/inferior.h2
-rw-r--r--gdb/nto-tdep.h2
-rw-r--r--gdb/procfs.c25
4 files changed, 6 insertions, 29 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1e57b96c1e0..ed10cf01329 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2009-06-07 Pedro Alves <pedro@codesourcery.com>
+ * inferior.h (proc_iterate_over_mappings): Delete declaration.
+ * nto-tdep.h (proc_iterate_over_mappings): Delete declaration.
+ * procfs.c (proc_iterate_over_mappings): Delete.
+
+2009-06-07 Pedro Alves <pedro@codesourcery.com>
+
* target.h (struct target_ops): Make to_has_all_memory,
to_has_memory, to_has_stack, to_has_registers and to_has_execution
methods instead of variables.
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 6f186cd2c1b..c924e492665 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -198,8 +198,6 @@ extern void terminal_init_inferior_with_pgrp (int pgrp);
/* From procfs.c */
-extern int proc_iterate_over_mappings (int (*)(int, CORE_ADDR));
-
extern ptid_t procfs_first_available (void);
/* From fork-child.c */
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h
index b3a29f59ce8..24e4ff840ca 100644
--- a/gdb/nto-tdep.h
+++ b/gdb/nto-tdep.h
@@ -147,8 +147,6 @@ void nto_set_target(struct nto_target_ops *);
char **nto_parse_redirection (char *start_argv[], const char **in,
const char **out, const char **err);
-int proc_iterate_over_mappings (int (*func) (int, CORE_ADDR));
-
void nto_relocate_section_addresses (struct so_list *,
struct target_section *);
diff --git a/gdb/procfs.c b/gdb/procfs.c
index ad7daf9af65..1e246bec53d 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -5524,31 +5524,6 @@ int solib_mappings_callback (struct prmap *map,
}
/*
- * Function: proc_iterate_over_mappings
- *
- * Uses the unified "iterate_over_mappings" function
- * to implement the exported interface to solib-svr4.c.
- *
- * Given a pointer to a function, call that function once for every
- * mapped address space in the process. The callback function
- * receives an open file descriptor for the file corresponding to
- * that mapped address space (if there is one), and the base address
- * of the mapped space. Quit when the callback function returns a
- * nonzero value, or at teh end of the mappings.
- *
- * Returns: the first non-zero return value of the callback function,
- * or zero.
- */
-
-int
-proc_iterate_over_mappings (int (*func) (int, CORE_ADDR))
-{
- procinfo *pi = find_procinfo_or_die (PIDGET (inferior_ptid), 0);
-
- return iterate_over_mappings (pi, func, pi, solib_mappings_callback);
-}
-
-/*
* Function: find_memory_regions_callback
*
* Implements the to_find_memory_regions method.