From: Joel Brobecker Date: Wed, 14 Mar 2012 01:46:59 +0000 (+0000) Subject: Fix -Wmissing-prototypes build warnings on Darwin. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c381a3f69abc90c5117dbb9d425149d24c42fd6e;p=binutils-gdb.git Fix -Wmissing-prototypes build warnings on Darwin. gdb/ 2012-03-13 Josh Matthews * darwin-nat-info.c (_initialize_darwin_info_commands): Add prototype. (darwin_debug_port_info): Make static. * darwin-nat.c (_initialize_darwin_inferior): Add prototype. * machoread.c (_initialize_machoread): Add prototype. * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get) (i386_darwin_set_control, i386_darwin_get_control) i386_darwin_dr_set_addr, i386_darwin_get_addr) i386_darwin_get_status, i386_darwin_get_control): Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 89a97236f12..a38be48c5ca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,16 @@ +2012-03-13 Josh Matthews + + * darwin-nat-info.c (_initialize_darwin_info_commands): Add + prototype. + (darwin_debug_port_info): Make static. + * darwin-nat.c (_initialize_darwin_inferior): Add prototype. + * machoread.c (_initialize_machoread): Add prototype. + * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get) + (i386_darwin_set_control, i386_darwin_get_control) + i386_darwin_dr_set_addr, i386_darwin_get_addr) + i386_darwin_get_status, i386_darwin_get_control): + Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro. + 2012-03-13 Joel Brobecker * ax-gdb.c (gen_usual_unary): Remove special handling of diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c index 9170e14e9d0..9741538f918 100644 --- a/gdb/darwin-nat-info.c +++ b/gdb/darwin-nat-info.c @@ -301,7 +301,7 @@ info_mach_ports_command (char *args, int from_tty) } -void +static void darwin_debug_port_info (task_t task, mach_port_t port) { kern_return_t kret; @@ -843,6 +843,9 @@ info_mach_exceptions_command (char *args, int from_tty) } } +/* -Wmissing-prototypes */ +extern initialize_file_ftype _initialize_darwin_info_commands; + void _initialize_darwin_info_commands (void) { diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 0feebe3ab58..de661a34d96 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -2015,6 +2015,9 @@ darwin_supports_multi_process (void) return 1; } +/* -Wmissing-prototypes */ +extern initialize_file_ftype _initialize_darwin_inferior; + void _initialize_darwin_inferior (void) { diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c index b452f1eb6df..ced290352c7 100644 --- a/gdb/i386-darwin-nat.c +++ b/gdb/i386-darwin-nat.c @@ -260,7 +260,7 @@ i386_darwin_store_inferior_registers (struct target_ops *ops, } } - +#ifdef HW_WATCHPOINT_NOT_YET_ENABLED /* Support for debug registers, boosted mostly from i386-linux-nat.c. */ static void @@ -410,6 +410,7 @@ i386_darwin_dr_get_control (void) { return i386_darwin_dr_get (DR_CONTROL); } +#endif void darwin_check_osabi (darwin_inferior *inf, thread_t thread) diff --git a/gdb/machoread.c b/gdb/machoread.c index 88ce612bfee..8a6b500e028 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -1035,6 +1035,9 @@ static const struct sym_fns macho_sym_fns = { &psym_functions }; +/* -Wmissing-prototypes */ +extern initialize_file_ftype _initialize_machoread; + void _initialize_machoread () {