aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-03-01 23:55:40 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-03-01 23:55:40 +0000
commit04dcf5fa3694f69b636b217ab5f7f7ea311f98d5 (patch)
treeedeca821837d5d9fd054397ad08c542854ae746e /gdb
parent19080931242c87277a624e46aae364f030c130c5 (diff)
downloadgdb-04dcf5fa3694f69b636b217ab5f7f7ea311f98d5.zip
gdb-04dcf5fa3694f69b636b217ab5f7f7ea311f98d5.tar.gz
gdb-04dcf5fa3694f69b636b217ab5f7f7ea311f98d5.tar.bz2
gdb/
Fix -Wmissing-prototypes build. * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h. * sh-tdep.c: Include sh64-tdep.h. * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations. * sh64-tdep.c: Include sh64-tdep.h. * sh64-tdep.h: New file.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/Makefile.in2
-rw-r--r--gdb/sh-tdep.c1
-rw-r--r--gdb/sh-tdep.h3
-rw-r--r--gdb/sh64-tdep.c1
-rw-r--r--gdb/sh64-tdep.h25
6 files changed, 37 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3e59954..7f1a399 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,12 @@
+2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
+ * sh-tdep.c: Include sh64-tdep.h.
+ * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
+ * sh64-tdep.c: Include sh64-tdep.h.
+ * sh64-tdep.h: New file.
+
2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
* mips-tdep.c (mips32_scan_prologue): Correct indentation.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 3e1b93c..57ef436 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -786,7 +786,7 @@ target.h prologue-value.h cp-abi.h tui/tui-hooks.h tui/tui.h \
tui/tui-file.h tui/tui-command.h tui/tui-disasm.h tui/tui-wingeneral.h \
tui/tui-windata.h tui/tui-data.h tui/tui-win.h tui/tui-stack.h \
tui/tui-winsource.h tui/tui-regs.h tui/tui-io.h tui/tui-layout.h \
-tui/tui-source.h xcoffsolib.h sol2-tdep.h gregset.h sh-tdep.h \
+tui/tui-source.h xcoffsolib.h sol2-tdep.h gregset.h sh-tdep.h sh64-tdep.h \
expression.h score-tdep.h gdb_select.h ser-tcp.h buildsym.h valprint.h \
call-cmds.h typeprint.h mi/mi-getopt.h mi/mi-parse.h mi/mi-console.h \
mi/mi-out.h mi/mi-main.h mi/mi-common.h mi/mi-cmds.h linux-nat.h \
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index e5b66b4..e65aeb4 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -44,6 +44,7 @@
#include "objfiles.h"
#include "sh-tdep.h"
+#include "sh64-tdep.h"
#include "elf-bfd.h"
#include "solib-svr4.h"
diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h
index feec59a..2ffcfb9 100644
--- a/gdb/sh-tdep.h
+++ b/gdb/sh-tdep.h
@@ -82,9 +82,6 @@ enum
FV_LAST_REGNUM = 79
};
-extern gdbarch_init_ftype sh64_gdbarch_init;
-extern void sh64_show_regs (struct frame_info *);
-
/* This structure describes a register in a core-file. */
struct sh_corefile_regmap
{
diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c
index 96ac0b9..2e5d8bd 100644
--- a/gdb/sh64-tdep.c
+++ b/gdb/sh64-tdep.c
@@ -46,6 +46,7 @@
/* Register numbers shared with the simulator. */
#include "gdb/sim-sh.h"
#include "language.h"
+#include "sh64-tdep.h"
/* Information that is dependent on the processor variant. */
enum sh_abi
diff --git a/gdb/sh64-tdep.h b/gdb/sh64-tdep.h
new file mode 100644
index 0000000..b1b42f5
--- /dev/null
+++ b/gdb/sh64-tdep.h
@@ -0,0 +1,25 @@
+/* Target-dependent definitions for Renesas Super-H, for GDB.
+ Copyright (C) 2012 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef SH64_TDEP_H
+#define SH64_TDEP_H
+
+extern gdbarch_init_ftype sh64_gdbarch_init;
+extern void sh64_show_regs (struct frame_info *frame);
+
+#endif /* SH64_TDEP_H */