+2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
+
+ Fix -Wmissing-prototypes build.
+ * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
+ (_initialize_windows_nat, _initialize_check_for_gdb_ini)
+ (_initialize_loadable): New prototypes.
+
2012-03-02 Doug Evans <dje@google.com>
* dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
}
/* Load DLL symbol info. */
-void
+static void
dll_symbol_command (char *args, int from_tty)
{
int n;
handler is in charge of interrupting the inferior using DebugBreakProcess.
Note that this function is not available prior to Windows XP. In this case
we emit a warning. */
-BOOL WINAPI
+static BOOL WINAPI
ctrl_c_handler (DWORD event_type)
{
const int attach_flag = current_inferior ()->attach_flag;
add_info_alias ("dll", "sharedlibrary", 1);
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_windows_nat;
+
void
_initialize_windows_nat (void)
{
? FALSE : TRUE;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_check_for_gdb_ini;
+
void
_initialize_check_for_gdb_ini (void)
{
return size;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_loadable;
+
/* Load any functions which may not be available in ancient versions
of Windows. */
+
void
_initialize_loadable (void)
{