aboutsummaryrefslogtreecommitdiff
path: root/gdb/machoread.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-03-14 01:46:59 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-03-14 01:46:59 +0000
commitc381a3f69abc90c5117dbb9d425149d24c42fd6e (patch)
tree264805a16132460c9cdecfe43a11c5b192c4fd07 /gdb/machoread.c
parentccbb4f28f0454cf84b515c3122144f30f30d2f36 (diff)
downloadgdb-c381a3f69abc90c5117dbb9d425149d24c42fd6e.zip
gdb-c381a3f69abc90c5117dbb9d425149d24c42fd6e.tar.gz
gdb-c381a3f69abc90c5117dbb9d425149d24c42fd6e.tar.bz2
Fix -Wmissing-prototypes build warnings on Darwin.
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.
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r--gdb/machoread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c
index 88ce612..8a6b500 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 ()
{