From da3331ec167849ef6216f35565ba014bbae55ee3 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 12 Apr 2003 17:41:26 +0000 Subject: [PATCH] 2003-04-12 Andrew Cagney * 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. --- gdb/ChangeLog | 19 +++++++++++++++++++ gdb/ada-lang.h | 2 ++ gdb/arch-utils.h | 6 ++++++ gdb/ax-gdb.h | 3 ++- gdb/buildsym.h | 3 +++ gdb/builtin-regs.h | 2 ++ gdb/c-lang.h | 2 ++ gdb/cli-out.h | 2 ++ gdb/cli/cli-script.h | 4 ++++ gdb/cli/cli-setshow.h | 2 ++ gdb/config/m68k/tm-delta68.h | 2 ++ gdb/config/nm-linux.h | 2 ++ gdb/config/nm-lynx.h | 2 ++ gdb/config/pa/tm-hppah.h | 2 ++ gdb/config/rs6000/tm-rs6000.h | 2 ++ gdb/config/sparc/tm-sp64.h | 2 ++ gdb/cp-abi.h | 2 ++ gdb/disasm.h | 2 ++ gdb/doublest.h | 2 ++ gdb/dwarf2cfi.h | 2 ++ gdb/event-top.h | 2 ++ gdb/gdb.h | 2 ++ gdb/gdbarch.h | 2 ++ gdb/gdbarch.sh | 2 ++ gdb/gdbcore.h | 2 ++ gdb/gdbthread.h | 4 ++++ gdb/gdbtypes.h | 1 + gdb/i386-tdep.h | 4 ++++ gdb/i387-tdep.h | 4 ++++ gdb/inferior.h | 4 ++++ gdb/language.h | 2 ++ gdb/linespec.h | 2 ++ gdb/mips-tdep.h | 2 ++ gdb/monitor.h | 1 + gdb/ocd.h | 3 +++ gdb/ppc-tdep.h | 1 + gdb/remote-utils.h | 2 ++ gdb/ser-unix.h | 3 +++ gdb/serial.h | 2 ++ gdb/solib-svr4.h | 2 ++ gdb/source.h | 2 ++ gdb/srec.h | 2 ++ gdb/stabsread.h | 2 ++ gdb/symfile.h | 2 +- gdb/symtab.h | 4 +++- gdb/target.h | 4 ++++ gdb/typeprint.h | 2 ++ gdb/value.h | 4 ++++ gdb/x86-64-tdep.h | 3 +++ gdb/xmodem.h | 2 ++ 50 files changed, 136 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3241d65..ea88538 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,22 @@ +2003-04-12 Andrew Cagney + + * 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 * frame.c (get_frame_id): Return this frame's "id". diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h index 45c156a..3f00b9a 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 3452fc8..f3874a0 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 3e1006a..b091384 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 6987742..e80d8c6 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 fb9fbcf..631903a 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 7d7cd03..dd8f231 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 a984d05..8bca872 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 898e3cc..03cb841 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 393612a..470b8b7 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 c54f9a7..03172b0 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 114acd8..0fb5627 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 1fb0eb6..4a55a13 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 #include /* 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 5a457a9..070c83c 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 2a80a50..c736589 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 a415b83..2d2193d 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 e119514..0413aba 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 beaaf4a..6a6df7e 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 d98d045..668efa7 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 2c8be97..28a329d 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 4c06083..7e48a6c 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 737ac82..6a2eaa0 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 e055dab..7b2641b 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 0d2ca73..7a17b63 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -807,6 +807,8 @@ cat <