Fix -Wmissing-prototypes build warnings on Darwin.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 14 Mar 2012 01:46:59 +0000 (01:46 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 14 Mar 2012 01:46:59 +0000 (01:46 +0000)
gdb/
2012-03-13  Josh Matthews  <josh@joshmatthews.net>

* 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.

gdb/ChangeLog
gdb/darwin-nat-info.c
gdb/darwin-nat.c
gdb/i386-darwin-nat.c
gdb/machoread.c

index 89a97236f1284d9f52d7252fc34c5748b6e84636..a38be48c5ca8aba9fc433f52a20ede78ad84b7ff 100644 (file)
@@ -1,3 +1,16 @@
+2012-03-13  Josh Matthews  <josh@joshmatthews.net>
+
+       * 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  <brobecker@adacore.com>
 
        * ax-gdb.c (gen_usual_unary): Remove special handling of
index 9170e14e9d0c42a8dec3da87bb087ff7c446f656..9741538f91873122fe17f0467e420725286a0f49 100644 (file)
@@ -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)
 {
index 0feebe3ab587e84d50a8b74a0b7a495b86bb1785..de661a34d962abeeda2039912b08783af0bcfbed 100644 (file)
@@ -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)
 {
index b452f1eb6df2ee5ba4addddacd23f1bb6de602e4..ced290352c72e57f6cfc5f465538504f8cc61524 100644 (file)
@@ -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)
index 88ce612bfee82e94a3592ab16d5a0dfdd641feb8..8a6b500e0283a237b56c1788003924c7467eef49 100644 (file)
@@ -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 ()
 {