This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/4] Fix declaration of proc_find_memory_regions
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Thu, 20 Sep 2012 18:33:58 +0200
- Subject: [PATCH 1/4] Fix declaration of proc_find_memory_regions
- References: <1348158841-2313-1-git-send-email-brobecker@adacore.com>
This function is used as a target_ops callback. The function
implemention was recently changed, but the declaration wasn't
updated accordingly.
This fixes a build failure on Solaris.
gdb/ChangeLog:
* procfs.c (proc_find_memory_regions): Fix declaration.
---
gdb/procfs.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/gdb/procfs.c b/gdb/procfs.c
index ee2b123..3583e8e 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -141,11 +141,7 @@ static int procfs_thread_alive (struct target_ops *ops, ptid_t);
static void procfs_find_new_threads (struct target_ops *ops);
static char *procfs_pid_to_str (struct target_ops *, ptid_t);
-static int proc_find_memory_regions (int (*) (CORE_ADDR,
- unsigned long,
- int, int, int,
- void *),
- void *);
+static int proc_find_memory_regions (find_memory_region_ftype, void *);
static char * procfs_make_note_section (bfd *, int *);
--
1.6.5.rc2