diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-02 05:38:51 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-02 05:38:51 +0000 |
commit | d603d4b3dad936893df823ac1906b175298d7d6a (patch) | |
tree | c852a6ff5bf7e9415347fea476f74059072a5386 | |
parent | 7fb3ad1f9f78a258da308df9a6c57442f22d1108 (diff) | |
download | gdb-d603d4b3dad936893df823ac1906b175298d7d6a.zip gdb-d603d4b3dad936893df823ac1906b175298d7d6a.tar.gz gdb-d603d4b3dad936893df823ac1906b175298d7d6a.tar.bz2 |
gdb/
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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/windows-nat.c | 14 |
2 files changed, 19 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5b1c865..dc324dd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +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 diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 2f2215a..f536ed1 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -891,7 +891,7 @@ windows_clear_solib (void) } /* Load DLL symbol info. */ -void +static void dll_symbol_command (char *args, int from_tty) { int n; @@ -1386,7 +1386,7 @@ windows_resume (struct target_ops *ops, 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; @@ -2512,6 +2512,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) { @@ -2671,6 +2674,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) { @@ -2764,8 +2770,12 @@ bad_GetConsoleFontSize (HANDLE w, DWORD nFont) 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) { |