aboutsummaryrefslogtreecommitdiff
path: root/gdb/spu-linux-nat.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-01-07 17:28:48 +0800
committerYao Qi <yao@codesourcery.com>2014-01-07 21:47:14 +0800
commitbd1f77885b60e39e5a4125053ae2ae2a26244419 (patch)
treeae25830e879433d63486dad176556b185830cae1 /gdb/spu-linux-nat.c
parent9877c63c84d71d43e3b9ce3c2e54ba3b4065459a (diff)
downloadgdb-bd1f77885b60e39e5a4125053ae2ae2a26244419.zip
gdb-bd1f77885b60e39e5a4125053ae2ae2a26244419.tar.gz
gdb-bd1f77885b60e39e5a4125053ae2ae2a26244419.tar.bz2
Fix missing-prototypes error for '_initialize_spu_nat'
This patch fixes this build error below: ../../binutils-gdb/gdb/spu-linux-nat.c:616:1: error: no previous prototype for ‘_initialize_spu_nat’ [-Werror=missing-prototypes] gdb: 2014-01-07 Yao Qi <yao@codesourcery.com> * spu-linux-nat.c (_initialize_spu_nat): Declare.
Diffstat (limited to 'gdb/spu-linux-nat.c')
-rw-r--r--gdb/spu-linux-nat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c
index e9b155b..9441e02 100644
--- a/gdb/spu-linux-nat.c
+++ b/gdb/spu-linux-nat.c
@@ -610,6 +610,8 @@ spu_can_use_hw_breakpoint (int type, int cnt, int othertype)
return 0;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_spu_nat;
/* Initialize SPU native target. */
void