summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog19
-rw-r--r--gdb/ada-lang.h2
-rw-r--r--gdb/arch-utils.h6
-rw-r--r--gdb/ax-gdb.h3
-rw-r--r--gdb/buildsym.h3
-rw-r--r--gdb/builtin-regs.h2
-rw-r--r--gdb/c-lang.h2
-rw-r--r--gdb/cli-out.h2
-rw-r--r--gdb/cli/cli-script.h4
-rw-r--r--gdb/cli/cli-setshow.h2
-rw-r--r--gdb/config/m68k/tm-delta68.h2
-rw-r--r--gdb/config/nm-linux.h2
-rw-r--r--gdb/config/nm-lynx.h2
-rw-r--r--gdb/config/pa/tm-hppah.h2
-rw-r--r--gdb/config/rs6000/tm-rs6000.h2
-rw-r--r--gdb/config/sparc/tm-sp64.h2
-rw-r--r--gdb/cp-abi.h2
-rw-r--r--gdb/disasm.h2
-rw-r--r--gdb/doublest.h2
-rw-r--r--gdb/dwarf2cfi.h2
-rw-r--r--gdb/event-top.h2
-rw-r--r--gdb/gdb.h2
-rw-r--r--gdb/gdbarch.h2
-rwxr-xr-xgdb/gdbarch.sh2
-rw-r--r--gdb/gdbcore.h2
-rw-r--r--gdb/gdbthread.h4
-rw-r--r--gdb/gdbtypes.h1
-rw-r--r--gdb/i386-tdep.h4
-rw-r--r--gdb/i387-tdep.h4
-rw-r--r--gdb/inferior.h4
-rw-r--r--gdb/language.h2
-rw-r--r--gdb/linespec.h2
-rw-r--r--gdb/mips-tdep.h2
-rw-r--r--gdb/monitor.h1
-rw-r--r--gdb/ocd.h3
-rw-r--r--gdb/ppc-tdep.h1
-rw-r--r--gdb/remote-utils.h2
-rw-r--r--gdb/ser-unix.h3
-rw-r--r--gdb/serial.h2
-rw-r--r--gdb/solib-svr4.h2
-rw-r--r--gdb/source.h2
-rw-r--r--gdb/srec.h2
-rw-r--r--gdb/stabsread.h2
-rw-r--r--gdb/symfile.h2
-rw-r--r--gdb/symtab.h4
-rw-r--r--gdb/target.h4
-rw-r--r--gdb/typeprint.h2
-rw-r--r--gdb/value.h4
-rw-r--r--gdb/x86-64-tdep.h3
-rw-r--r--gdb/xmodem.h2
50 files changed, 136 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3241d65f2a2..ea885386584 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,22 @@
+2003-04-12 Andrew Cagney <cagney@redhat.com>
+
+ * gdbarch.sh: Add missing opaque declarations.
+ * gdbarch.h: Regnerate.
+ * symtab.h: Add missing opaque declarations.
+ * value.h, target.h, symfile.h, stabsread.h: Ditto.
+ * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
+ * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
+ * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
+ * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
+ * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
+ * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
+ * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
+ * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
+ * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
+ * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
+ * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
+ * cli/cli-setshow.h, cli/cli-script.h: Ditto.
+
2003-04-11 Andrew Cagney <cagney@redhat.com>
* frame.c (get_frame_id): Return this frame's "id".
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index 45c156a1210..3f00b9ac313 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -20,6 +20,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#if !defined (ADA_LANG_H)
#define ADA_LANG_H 1
+struct partial_symbol;
+
#include "value.h"
#include "gdbtypes.h"
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index 3452fc81350..f3874a0c250 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -22,6 +22,12 @@
#ifndef GDBARCH_UTILS_H
#define GDBARCH_UTILS_H
+struct gdbarch;
+struct frame_info;
+struct minimal_symbol;
+struct type;
+struct gdbarch_info;
+
/* gdbarch trace variable */
extern int gdbarch_debug;
diff --git a/gdb/ax-gdb.h b/gdb/ax-gdb.h
index 3e1006a3112..b0913840306 100644
--- a/gdb/ax-gdb.h
+++ b/gdb/ax-gdb.h
@@ -20,7 +20,8 @@
#ifndef AX_GDB_H
#define AX_GDB_H
-
+
+struct expression;
/* Types and enums */
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 6987742b031..e80d8c6743e 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -22,6 +22,9 @@
#if !defined (BUILDSYM_H)
#define BUILDSYM_H 1
+struct objfile;
+struct symbol;
+
/* This module provides definitions used for creating and adding to
the symbol table. These routines are called from various symbol-
file-reading routines.
diff --git a/gdb/builtin-regs.h b/gdb/builtin-regs.h
index fb9fbcf8f8e..631903ab9fb 100644
--- a/gdb/builtin-regs.h
+++ b/gdb/builtin-regs.h
@@ -24,6 +24,8 @@
#ifndef BUILTIN_REGS_H
#define BUILTIN_REGS_H
+struct frame_info;
+
extern int builtin_reg_map_name_to_regnum (const char *str, int len);
extern const char *builtin_reg_map_regnum_to_name (int regnum);
diff --git a/gdb/c-lang.h b/gdb/c-lang.h
index 7d7cd03a557..dd8f2311702 100644
--- a/gdb/c-lang.h
+++ b/gdb/c-lang.h
@@ -23,6 +23,8 @@
#if !defined (C_LANG_H)
#define C_LANG_H 1
+struct ui_file;
+
#include "value.h"
#include "macroexp.h"
diff --git a/gdb/cli-out.h b/gdb/cli-out.h
index a984d058390..8bca872fb05 100644
--- a/gdb/cli-out.h
+++ b/gdb/cli-out.h
@@ -22,6 +22,8 @@
#ifndef CLI_OUT_H
#define CLI_OUT_H
+struct ui_file;
+
extern struct ui_out *cli_out_new (struct ui_file *stream);
extern struct ui_file *cli_out_set_stream (struct ui_out *uiout,
diff --git a/gdb/cli/cli-script.h b/gdb/cli/cli-script.h
index 898e3cc04f8..03cb84137e5 100644
--- a/gdb/cli/cli-script.h
+++ b/gdb/cli/cli-script.h
@@ -19,6 +19,10 @@
#if !defined (CLI_SCRIPT_H)
#define CLI_SCRIPT_H 1
+struct ui_file;
+struct command_line;
+struct cmd_list_element;
+
/* Exported to cli/cli-cmds.c */
extern void script_from_file (FILE *stream, char *file);
diff --git a/gdb/cli/cli-setshow.h b/gdb/cli/cli-setshow.h
index 393612a8177..470b8b754c6 100644
--- a/gdb/cli/cli-setshow.h
+++ b/gdb/cli/cli-setshow.h
@@ -19,6 +19,8 @@
#if !defined (CLI_SETSHOW_H)
#define CLI_SETSHOW_H 1
+struct cmd_list_element;
+
/* Exported to cli/cli-cmds.c and gdb/top.c */
/* Do a "set" or "show" command. ARG is NULL if no argument, or the text
diff --git a/gdb/config/m68k/tm-delta68.h b/gdb/config/m68k/tm-delta68.h
index c54f9a7dd9e..03172b0dd75 100644
--- a/gdb/config/m68k/tm-delta68.h
+++ b/gdb/config/m68k/tm-delta68.h
@@ -18,6 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct frame_info;
+
#include "regcache.h"
/* Define BPT_VECTOR if it is different than the default.
diff --git a/gdb/config/nm-linux.h b/gdb/config/nm-linux.h
index 114acd8b67c..0fb56271473 100644
--- a/gdb/config/nm-linux.h
+++ b/gdb/config/nm-linux.h
@@ -19,6 +19,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct target_ops;
+
/* GNU/Linux is SVR4-ish but its /proc file system isn't. */
#undef USE_PROC_FS
diff --git a/gdb/config/nm-lynx.h b/gdb/config/nm-lynx.h
index 1fb0eb61a16..4a55a13c960 100644
--- a/gdb/config/nm-lynx.h
+++ b/gdb/config/nm-lynx.h
@@ -23,6 +23,8 @@
#ifndef NM_LYNX_H
#define NM_LYNX_H
+struct target_waitstatus;
+
#include <sys/conf.h>
#include <sys/kernel.h>
/* sys/kernel.h should define this, but doesn't always, sigh. */
diff --git a/gdb/config/pa/tm-hppah.h b/gdb/config/pa/tm-hppah.h
index 5a457a9db3a..070c83ce514 100644
--- a/gdb/config/pa/tm-hppah.h
+++ b/gdb/config/pa/tm-hppah.h
@@ -21,6 +21,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct frame_info;
+
/* The solib hooks are not really designed to have a list of hook
and handler routines. So until we clean up those interfaces you
either get SOM shared libraries or HP's unusual PA64 ELF shared
diff --git a/gdb/config/rs6000/tm-rs6000.h b/gdb/config/rs6000/tm-rs6000.h
index 2a80a502261..c73658922bd 100644
--- a/gdb/config/rs6000/tm-rs6000.h
+++ b/gdb/config/rs6000/tm-rs6000.h
@@ -21,6 +21,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct frame_info;
+
#define GDB_MULTI_ARCH 1
/* Minimum possible text address in AIX */
diff --git a/gdb/config/sparc/tm-sp64.h b/gdb/config/sparc/tm-sp64.h
index a415b8324e4..2d2193d207f 100644
--- a/gdb/config/sparc/tm-sp64.h
+++ b/gdb/config/sparc/tm-sp64.h
@@ -23,6 +23,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct type;
+
#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
#ifndef GDB_TARGET_IS_SPARC64
diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h
index e1195148408..0413abafc4e 100644
--- a/gdb/cp-abi.h
+++ b/gdb/cp-abi.h
@@ -25,6 +25,8 @@
#ifndef CP_ABI_H_
#define CP_ABI_H_ 1
+struct fn_field;
+struct type;
struct value;
/* The functions here that attempt to determine what sort of thing a
diff --git a/gdb/disasm.h b/gdb/disasm.h
index beaaf4aaa3d..6a6df7e0b57 100644
--- a/gdb/disasm.h
+++ b/gdb/disasm.h
@@ -21,6 +21,8 @@
#ifndef DISASM_H
#define DISASM_H
+struct ui_out;
+
extern void gdb_disassembly (struct ui_out *uiout,
char *file_string,
int line_num,
diff --git a/gdb/doublest.h b/gdb/doublest.h
index d98d045c987..668efa71cf3 100644
--- a/gdb/doublest.h
+++ b/gdb/doublest.h
@@ -24,6 +24,8 @@
#ifndef DOUBLEST_H
#define DOUBLEST_H
+struct type;
+
/* Setup definitions for host and target floating point formats. We need to
consider the format for `float', `double', and `long double' for both target
and host. We need to do this so that we know what kind of conversions need
diff --git a/gdb/dwarf2cfi.h b/gdb/dwarf2cfi.h
index 2c8be97ddca..28a329d2349 100644
--- a/gdb/dwarf2cfi.h
+++ b/gdb/dwarf2cfi.h
@@ -22,6 +22,8 @@
#ifndef DWARF2CFI_H
#define DWARF2CFI_H
+struct frame_info;
+
struct context_reg
{
union
diff --git a/gdb/event-top.h b/gdb/event-top.h
index 4c06083db24..7e48a6ca190 100644
--- a/gdb/event-top.h
+++ b/gdb/event-top.h
@@ -24,6 +24,8 @@
#ifndef EVENT_TOP_H
#define EVENT_TOP_H
+struct cmd_list_element;
+
/* Stack for prompts. Each prompt is composed as a prefix, a prompt
and a suffix. The prompt to be displayed at any given time is the
one on top of the stack. A stack is necessary because of cases in
diff --git a/gdb/gdb.h b/gdb/gdb.h
index 737ac82edfe..6a2eaa0ca12 100644
--- a/gdb/gdb.h
+++ b/gdb/gdb.h
@@ -22,6 +22,8 @@
#ifndef GDB_H
#define GDB_H
+struct ui_out;
+
/* Return-code (RC) from a gdb library call. (The abreviation RC is
taken from the sim/common directory.) */
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index e055dab0312..7b2641b4c1e 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -42,6 +42,8 @@
#include "symfile.h" /* For entry_point_address(). */
#endif
+struct floatformat;
+struct ui_file;
struct frame_info;
struct value;
struct objfile;
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 0d2ca73e186..7a17b63c3d9 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -807,6 +807,8 @@ cat <<EOF
#include "symfile.h" /* For entry_point_address(). */
#endif
+struct floatformat;
+struct ui_file;
struct frame_info;
struct value;
struct objfile;
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index e359b3dabbb..e03ebf47fa7 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -24,6 +24,8 @@
#if !defined (GDBCORE_H)
#define GDBCORE_H 1
+struct type;
+
#include "bfd.h"
/* Return the name of the executable file as a string.
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index e3df58bbcf5..aad98145c22 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -25,6 +25,10 @@
#ifndef GDBTHREAD_H
#define GDBTHREAD_H
+struct breakpoint;
+struct frame_id;
+struct symtab;
+
/* For bpstat */
#include "breakpoint.h"
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 10466973f7e..2d2561e40ae 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -26,6 +26,7 @@
#define GDBTYPES_H 1
/* Forward declarations for prototypes. */
+struct field;
struct block;
/* Codes for `fundamental types'. This is a monstrosity based on the
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h
index 25bf6b38ab6..1e0b40506a8 100644
--- a/gdb/i386-tdep.h
+++ b/gdb/i386-tdep.h
@@ -22,6 +22,10 @@
#ifndef I386_TDEP_H
#define I386_TDEP_H
+struct reggroup;
+struct gdbarch;
+struct frame_info;
+
/* GDB's i386 target supports both the 32-bit Intel Architecture
(IA-32) and the 64-bit AMD x86-64 architecture. Internally it uses
a similar register layout for both.
diff --git a/gdb/i387-tdep.h b/gdb/i387-tdep.h
index e29b19834d5..707931016b2 100644
--- a/gdb/i387-tdep.h
+++ b/gdb/i387-tdep.h
@@ -21,6 +21,10 @@
#ifndef I387_TDEP_H
#define I387_TDEP_H
+struct gdbarch;
+struct ui_file;
+struct frame_info;
+
/* Print out the i387 floating point state. */
extern void i387_print_float_info (struct gdbarch *gdbarch,
diff --git a/gdb/inferior.h b/gdb/inferior.h
index db0f4d98bea..62034492915 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -24,6 +24,10 @@
#if !defined (INFERIOR_H)
#define INFERIOR_H 1
+struct target_waitstatus;
+struct frame_info;
+struct ui_file;
+struct type;
struct gdbarch;
struct regcache;
diff --git a/gdb/language.h b/gdb/language.h
index d9265324cdd..f55c9f0a2f9 100644
--- a/gdb/language.h
+++ b/gdb/language.h
@@ -30,6 +30,8 @@
struct value;
struct objfile;
struct expression;
+struct ui_file;
+
/* enum exp_opcode; ANSI's `wisdom' didn't include forward enum decls. */
/* This used to be included to configure GDB for one or more specific
diff --git a/gdb/linespec.h b/gdb/linespec.h
index 7c3f90ca268..3ede4bd96ac 100644
--- a/gdb/linespec.h
+++ b/gdb/linespec.h
@@ -19,6 +19,8 @@
#if !defined (LINESPEC_H)
#define LINESPEC_H 1
+struct symtab;
+
extern struct symtabs_and_lines
decode_line_1 (char **argptr, int funfirstline,
struct symtab *default_symtab, int default_line,
diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h
index 92202e2d7b5..8e19bcdf266 100644
--- a/gdb/mips-tdep.h
+++ b/gdb/mips-tdep.h
@@ -22,6 +22,8 @@
#ifndef MIPS_TDEP_H
#define MIPS_TDEP_H
+struct gdbarch;
+
/* All the possible MIPS ABIs. */
enum mips_abi
{
diff --git a/gdb/monitor.h b/gdb/monitor.h
index 7b87f95b394..9141450d6ac 100644
--- a/gdb/monitor.h
+++ b/gdb/monitor.h
@@ -24,6 +24,7 @@
#ifndef MONITOR_H
#define MONITOR_H
+struct target_waitstatus;
struct serial;
/* This structure describes the strings necessary to give small command
diff --git a/gdb/ocd.h b/gdb/ocd.h
index 5fa1fb95235..64d695a00c5 100644
--- a/gdb/ocd.h
+++ b/gdb/ocd.h
@@ -21,6 +21,9 @@
#ifndef OCD_H
#define OCD_H
+struct mem_attrib;
+struct target_ops;
+
/* Wiggler serial protocol definitions */
#define DLE 020 /* Quote char */
diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h
index f3c022c577f..066cd99af45 100644
--- a/gdb/ppc-tdep.h
+++ b/gdb/ppc-tdep.h
@@ -22,6 +22,7 @@
#ifndef PPC_TDEP_H
#define PPC_TDEP_H
+struct gdbarch;
struct frame_info;
struct value;
diff --git a/gdb/remote-utils.h b/gdb/remote-utils.h
index 3ca3bb4dcce..cae5d5e238d 100644
--- a/gdb/remote-utils.h
+++ b/gdb/remote-utils.h
@@ -22,6 +22,8 @@
#ifndef REMOTE_UTILS_H
#define REMOTE_UTILS_H
+struct target_ops;
+
#include "target.h"
struct serial;
diff --git a/gdb/ser-unix.h b/gdb/ser-unix.h
index f7be059b28a..3bdf0bcb0ee 100644
--- a/gdb/ser-unix.h
+++ b/gdb/ser-unix.h
@@ -22,6 +22,9 @@
#ifndef SER_UNIX_H
#define SER_UNIX_H
+struct serial;
+struct ui_file;
+
/* Generic UNIX/FD functions */
extern int ser_unix_nop_flush_output (struct serial *scb);
diff --git a/gdb/serial.h b/gdb/serial.h
index 97d68f32a04..7495b709d57 100644
--- a/gdb/serial.h
+++ b/gdb/serial.h
@@ -22,6 +22,8 @@
#ifndef SERIAL_H
#define SERIAL_H
+struct ui_file;
+
/* For most routines, if a failure is indicated, then errno should be
examined. */
diff --git a/gdb/solib-svr4.h b/gdb/solib-svr4.h
index e41c240f2f8..d9d321771a3 100644
--- a/gdb/solib-svr4.h
+++ b/gdb/solib-svr4.h
@@ -19,6 +19,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct objfile;
+
/* Critical offsets and sizes which describe struct r_debug and
struct link_map on SVR4-like targets. All offsets and sizes are
in bytes unless otherwise specified. */
diff --git a/gdb/source.h b/gdb/source.h
index ba7d45f5260..7cfed1ae0e8 100644
--- a/gdb/source.h
+++ b/gdb/source.h
@@ -21,6 +21,8 @@
#ifndef SOURCE_H
#define SOURCE_H
+struct symtab;
+
/* Open a source file given a symtab S. Returns a file descriptor or
negative number for error. */
extern int open_source_file (struct symtab *s);
diff --git a/gdb/srec.h b/gdb/srec.h
index d2d9876da4c..8189a9b95ec 100644
--- a/gdb/srec.h
+++ b/gdb/srec.h
@@ -18,6 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct serial;
+
void load_srec (struct serial *desc, const char *file, bfd_vma load_offset,
int maxrecsize, int flags, int hashmark,
int (*waitack) (void));
diff --git a/gdb/stabsread.h b/gdb/stabsread.h
index 62fd77601ad..b70f16242ee 100644
--- a/gdb/stabsread.h
+++ b/gdb/stabsread.h
@@ -19,6 +19,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct objfile;
+
/* Definitions, prototypes, etc for stabs debugging format support
functions.
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 17bcb4cddae..0e2f1ef096b 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -26,7 +26,7 @@
/* This file requires that you first include "bfd.h". */
/* Opaque declarations. */
-
+struct objfile;
struct obstack;
struct block;
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 79705fec06d..bb9525cf067 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -25,7 +25,9 @@
#define SYMTAB_H 1
/* Opaque declarations. */
-
+struct ui_file;
+struct frame_info;
+struct symbol;
struct obstack;
struct objfile;
struct block;
diff --git a/gdb/target.h b/gdb/target.h
index f081bd36c12..b3f43fce577 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -23,6 +23,10 @@
#if !defined (TARGET_H)
#define TARGET_H
+struct objfile;
+struct ui_file;
+struct mem_attrib;
+
/* This include file defines the interface between the main part
of the debugger, and the part which is target-specific, or
specific to the communications interface between us and the
diff --git a/gdb/typeprint.h b/gdb/typeprint.h
index c57cc58c7ef..f2de1c57015 100644
--- a/gdb/typeprint.h
+++ b/gdb/typeprint.h
@@ -22,6 +22,8 @@
#ifndef TYPEPRINT_H
#define TYPEPRINT_H
+struct ui_file;
+
void print_type_scalar (struct type * type, LONGEST, struct ui_file *);
void c_type_print_varspec_suffix (struct type *, struct ui_file *, int,
diff --git a/gdb/value.h b/gdb/value.h
index 783191a040e..ad488a788fa 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -23,6 +23,10 @@
#if !defined (VALUE_H)
#define VALUE_H 1
+struct ui_file;
+struct expression;
+struct symbol;
+struct type;
struct regcache;
struct block;
diff --git a/gdb/x86-64-tdep.h b/gdb/x86-64-tdep.h
index b8f3aefb776..6885a7cb856 100644
--- a/gdb/x86-64-tdep.h
+++ b/gdb/x86-64-tdep.h
@@ -23,6 +23,9 @@
#ifndef X86_64_TDEP_H
#define X86_64_TDEP_H
+struct gdbarch;
+struct frame_info;
+
#include "i386-tdep.h"
extern int x86_64_num_regs;
diff --git a/gdb/xmodem.h b/gdb/xmodem.h
index 86c5008d159..83aa24f71ec 100644
--- a/gdb/xmodem.h
+++ b/gdb/xmodem.h
@@ -18,6 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+struct serial;
+
int xmodem_init_xfer (struct serial *desc);
void send_xmodem_packet (struct serial *desc, unsigned char *packet, int len,
int hashmark);