This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[mingw] build fix on -Wmissing-prototypes
- From: asmwarrior <asmwarrior at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 02 Mar 2012 10:06:14 +0800
- Subject: [mingw] build fix on -Wmissing-prototypes
- Authentication-results: mr.google.com; spf=pass (google.com: domain of asmwarrior@gmail.com designates 10.68.136.231 as permitted sender) smtp.mail=asmwarrior@gmail.com; dkim=pass header.i=asmwarrior@gmail.com
Some compiler options were added recently, which did more strict checking, thus break the mingw build of gdb.
The patch below fix this:
gdb/windows-nat.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 7398ee7..8e07125 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -169,6 +169,8 @@ static int windows_initialization_done;
static void windows_stop (ptid_t);
static int windows_thread_alive (struct target_ops *, ptid_t);
static void windows_kill_inferior (struct target_ops *);
+static void dll_symbol_command (char *args, int from_tty);
+static BOOL WINAPI ctrl_c_handler (DWORD event_type);
static void cygwin_set_dr (int i, CORE_ADDR addr);
static void cygwin_set_dr7 (unsigned long val);
@@ -2532,6 +2534,9 @@ set_windows_aliases (char *argv0)
add_info_alias ("dll", "sharedlibrary", 1);
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_windows_nat;
+
void
_initialize_windows_nat (void)
{
@@ -2691,6 +2696,9 @@ windows_thread_alive (struct target_ops *ops, ptid_t ptid)
? FALSE : TRUE;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_check_for_gdb_ini;
+
void
_initialize_check_for_gdb_ini (void)
{
@@ -2783,7 +2791,10 @@ bad_GetConsoleFontSize (HANDLE w, DWORD nFont)
size.Y = 12;
return size;
}
-
+
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_loadable;
+
/* Load any functions which may not be available in ancient versions
of Windows. */
void
asmwarrior
ollydbg from codeblocks' forum