diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-03-14 01:46:59 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-03-14 01:46:59 +0000 |
commit | c381a3f69abc90c5117dbb9d425149d24c42fd6e (patch) | |
tree | 264805a16132460c9cdecfe43a11c5b192c4fd07 /gdb/darwin-nat-info.c | |
parent | Testcase for: "ax-gdb: Do not treat enums and bools as integers". (diff) | |
download | binutils-gdb-c381a3f69abc90c5117dbb9d425149d24c42fd6e.tar.gz binutils-gdb-c381a3f69abc90c5117dbb9d425149d24c42fd6e.tar.bz2 binutils-gdb-c381a3f69abc90c5117dbb9d425149d24c42fd6e.zip |
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/darwin-nat-info.c')
-rw-r--r-- | gdb/darwin-nat-info.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |