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.
This commit is contained in:
Andrew Cagney
2003-04-12 17:41:26 +00:00
parent 93a2b7ae81
commit da3331ec16
50 changed files with 136 additions and 3 deletions

View File

@@ -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> 2003-04-11 Andrew Cagney <cagney@redhat.com>
* frame.c (get_frame_id): Return this frame's "id". * frame.c (get_frame_id): Return this frame's "id".

View File

@@ -20,6 +20,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#if !defined (ADA_LANG_H) #if !defined (ADA_LANG_H)
#define ADA_LANG_H 1 #define ADA_LANG_H 1
struct partial_symbol;
#include "value.h" #include "value.h"
#include "gdbtypes.h" #include "gdbtypes.h"

View File

@@ -22,6 +22,12 @@
#ifndef GDBARCH_UTILS_H #ifndef GDBARCH_UTILS_H
#define GDBARCH_UTILS_H #define GDBARCH_UTILS_H
struct gdbarch;
struct frame_info;
struct minimal_symbol;
struct type;
struct gdbarch_info;
/* gdbarch trace variable */ /* gdbarch trace variable */
extern int gdbarch_debug; extern int gdbarch_debug;

View File

@@ -20,7 +20,8 @@
#ifndef AX_GDB_H #ifndef AX_GDB_H
#define AX_GDB_H #define AX_GDB_H
struct expression;
/* Types and enums */ /* Types and enums */

View File

@@ -22,6 +22,9 @@
#if !defined (BUILDSYM_H) #if !defined (BUILDSYM_H)
#define BUILDSYM_H 1 #define BUILDSYM_H 1
struct objfile;
struct symbol;
/* This module provides definitions used for creating and adding to /* This module provides definitions used for creating and adding to
the symbol table. These routines are called from various symbol- the symbol table. These routines are called from various symbol-
file-reading routines. file-reading routines.

View File

@@ -24,6 +24,8 @@
#ifndef BUILTIN_REGS_H #ifndef BUILTIN_REGS_H
#define BUILTIN_REGS_H #define BUILTIN_REGS_H
struct frame_info;
extern int builtin_reg_map_name_to_regnum (const char *str, int len); extern int builtin_reg_map_name_to_regnum (const char *str, int len);
extern const char *builtin_reg_map_regnum_to_name (int regnum); extern const char *builtin_reg_map_regnum_to_name (int regnum);

View File

@@ -23,6 +23,8 @@
#if !defined (C_LANG_H) #if !defined (C_LANG_H)
#define C_LANG_H 1 #define C_LANG_H 1
struct ui_file;
#include "value.h" #include "value.h"
#include "macroexp.h" #include "macroexp.h"

View File

@@ -22,6 +22,8 @@
#ifndef CLI_OUT_H #ifndef CLI_OUT_H
#define CLI_OUT_H #define CLI_OUT_H
struct ui_file;
extern struct ui_out *cli_out_new (struct ui_file *stream); extern struct ui_out *cli_out_new (struct ui_file *stream);
extern struct ui_file *cli_out_set_stream (struct ui_out *uiout, extern struct ui_file *cli_out_set_stream (struct ui_out *uiout,

View File

@@ -19,6 +19,10 @@
#if !defined (CLI_SCRIPT_H) #if !defined (CLI_SCRIPT_H)
#define CLI_SCRIPT_H 1 #define CLI_SCRIPT_H 1
struct ui_file;
struct command_line;
struct cmd_list_element;
/* Exported to cli/cli-cmds.c */ /* Exported to cli/cli-cmds.c */
extern void script_from_file (FILE *stream, char *file); extern void script_from_file (FILE *stream, char *file);

View File

@@ -19,6 +19,8 @@
#if !defined (CLI_SETSHOW_H) #if !defined (CLI_SETSHOW_H)
#define CLI_SETSHOW_H 1 #define CLI_SETSHOW_H 1
struct cmd_list_element;
/* Exported to cli/cli-cmds.c and gdb/top.c */ /* 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 /* Do a "set" or "show" command. ARG is NULL if no argument, or the text

View File

@@ -18,6 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct frame_info;
#include "regcache.h" #include "regcache.h"
/* Define BPT_VECTOR if it is different than the default. /* Define BPT_VECTOR if it is different than the default.

View File

@@ -19,6 +19,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct target_ops;
/* GNU/Linux is SVR4-ish but its /proc file system isn't. */ /* GNU/Linux is SVR4-ish but its /proc file system isn't. */
#undef USE_PROC_FS #undef USE_PROC_FS

View File

@@ -23,6 +23,8 @@
#ifndef NM_LYNX_H #ifndef NM_LYNX_H
#define NM_LYNX_H #define NM_LYNX_H
struct target_waitstatus;
#include <sys/conf.h> #include <sys/conf.h>
#include <sys/kernel.h> #include <sys/kernel.h>
/* sys/kernel.h should define this, but doesn't always, sigh. */ /* sys/kernel.h should define this, but doesn't always, sigh. */

View File

@@ -21,6 +21,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct frame_info;
/* The solib hooks are not really designed to have a list of hook /* The solib hooks are not really designed to have a list of hook
and handler routines. So until we clean up those interfaces you and handler routines. So until we clean up those interfaces you
either get SOM shared libraries or HP's unusual PA64 ELF shared either get SOM shared libraries or HP's unusual PA64 ELF shared

View File

@@ -21,6 +21,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct frame_info;
#define GDB_MULTI_ARCH 1 #define GDB_MULTI_ARCH 1
/* Minimum possible text address in AIX */ /* Minimum possible text address in AIX */

View File

@@ -23,6 +23,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct type;
#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL #define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
#ifndef GDB_TARGET_IS_SPARC64 #ifndef GDB_TARGET_IS_SPARC64

View File

@@ -25,6 +25,8 @@
#ifndef CP_ABI_H_ #ifndef CP_ABI_H_
#define CP_ABI_H_ 1 #define CP_ABI_H_ 1
struct fn_field;
struct type;
struct value; struct value;
/* The functions here that attempt to determine what sort of thing a /* The functions here that attempt to determine what sort of thing a

View File

@@ -21,6 +21,8 @@
#ifndef DISASM_H #ifndef DISASM_H
#define DISASM_H #define DISASM_H
struct ui_out;
extern void gdb_disassembly (struct ui_out *uiout, extern void gdb_disassembly (struct ui_out *uiout,
char *file_string, char *file_string,
int line_num, int line_num,

View File

@@ -24,6 +24,8 @@
#ifndef DOUBLEST_H #ifndef DOUBLEST_H
#define DOUBLEST_H #define DOUBLEST_H
struct type;
/* Setup definitions for host and target floating point formats. We need to /* Setup definitions for host and target floating point formats. We need to
consider the format for `float', `double', and `long double' for both target 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 and host. We need to do this so that we know what kind of conversions need

View File

@@ -22,6 +22,8 @@
#ifndef DWARF2CFI_H #ifndef DWARF2CFI_H
#define DWARF2CFI_H #define DWARF2CFI_H
struct frame_info;
struct context_reg struct context_reg
{ {
union union

View File

@@ -24,6 +24,8 @@
#ifndef EVENT_TOP_H #ifndef EVENT_TOP_H
#define EVENT_TOP_H #define EVENT_TOP_H
struct cmd_list_element;
/* Stack for prompts. Each prompt is composed as a prefix, a prompt /* 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 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 one on top of the stack. A stack is necessary because of cases in

View File

@@ -22,6 +22,8 @@
#ifndef GDB_H #ifndef GDB_H
#define GDB_H #define GDB_H
struct ui_out;
/* Return-code (RC) from a gdb library call. (The abreviation RC is /* Return-code (RC) from a gdb library call. (The abreviation RC is
taken from the sim/common directory.) */ taken from the sim/common directory.) */

View File

@@ -42,6 +42,8 @@
#include "symfile.h" /* For entry_point_address(). */ #include "symfile.h" /* For entry_point_address(). */
#endif #endif
struct floatformat;
struct ui_file;
struct frame_info; struct frame_info;
struct value; struct value;
struct objfile; struct objfile;

View File

@@ -807,6 +807,8 @@ cat <<EOF
#include "symfile.h" /* For entry_point_address(). */ #include "symfile.h" /* For entry_point_address(). */
#endif #endif
struct floatformat;
struct ui_file;
struct frame_info; struct frame_info;
struct value; struct value;
struct objfile; struct objfile;

View File

@@ -24,6 +24,8 @@
#if !defined (GDBCORE_H) #if !defined (GDBCORE_H)
#define GDBCORE_H 1 #define GDBCORE_H 1
struct type;
#include "bfd.h" #include "bfd.h"
/* Return the name of the executable file as a string. /* Return the name of the executable file as a string.

View File

@@ -25,6 +25,10 @@
#ifndef GDBTHREAD_H #ifndef GDBTHREAD_H
#define GDBTHREAD_H #define GDBTHREAD_H
struct breakpoint;
struct frame_id;
struct symtab;
/* For bpstat */ /* For bpstat */
#include "breakpoint.h" #include "breakpoint.h"

View File

@@ -26,6 +26,7 @@
#define GDBTYPES_H 1 #define GDBTYPES_H 1
/* Forward declarations for prototypes. */ /* Forward declarations for prototypes. */
struct field;
struct block; struct block;
/* Codes for `fundamental types'. This is a monstrosity based on the /* Codes for `fundamental types'. This is a monstrosity based on the

View File

@@ -22,6 +22,10 @@
#ifndef I386_TDEP_H #ifndef I386_TDEP_H
#define 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 /* GDB's i386 target supports both the 32-bit Intel Architecture
(IA-32) and the 64-bit AMD x86-64 architecture. Internally it uses (IA-32) and the 64-bit AMD x86-64 architecture. Internally it uses
a similar register layout for both. a similar register layout for both.

View File

@@ -21,6 +21,10 @@
#ifndef I387_TDEP_H #ifndef I387_TDEP_H
#define I387_TDEP_H #define I387_TDEP_H
struct gdbarch;
struct ui_file;
struct frame_info;
/* Print out the i387 floating point state. */ /* Print out the i387 floating point state. */
extern void i387_print_float_info (struct gdbarch *gdbarch, extern void i387_print_float_info (struct gdbarch *gdbarch,

View File

@@ -24,6 +24,10 @@
#if !defined (INFERIOR_H) #if !defined (INFERIOR_H)
#define INFERIOR_H 1 #define INFERIOR_H 1
struct target_waitstatus;
struct frame_info;
struct ui_file;
struct type;
struct gdbarch; struct gdbarch;
struct regcache; struct regcache;

View File

@@ -30,6 +30,8 @@
struct value; struct value;
struct objfile; struct objfile;
struct expression; struct expression;
struct ui_file;
/* enum exp_opcode; ANSI's `wisdom' didn't include forward enum decls. */ /* 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 /* This used to be included to configure GDB for one or more specific

View File

@@ -19,6 +19,8 @@
#if !defined (LINESPEC_H) #if !defined (LINESPEC_H)
#define LINESPEC_H 1 #define LINESPEC_H 1
struct symtab;
extern struct symtabs_and_lines extern struct symtabs_and_lines
decode_line_1 (char **argptr, int funfirstline, decode_line_1 (char **argptr, int funfirstline,
struct symtab *default_symtab, int default_line, struct symtab *default_symtab, int default_line,

View File

@@ -22,6 +22,8 @@
#ifndef MIPS_TDEP_H #ifndef MIPS_TDEP_H
#define MIPS_TDEP_H #define MIPS_TDEP_H
struct gdbarch;
/* All the possible MIPS ABIs. */ /* All the possible MIPS ABIs. */
enum mips_abi enum mips_abi
{ {

View File

@@ -24,6 +24,7 @@
#ifndef MONITOR_H #ifndef MONITOR_H
#define MONITOR_H #define MONITOR_H
struct target_waitstatus;
struct serial; struct serial;
/* This structure describes the strings necessary to give small command /* This structure describes the strings necessary to give small command

View File

@@ -21,6 +21,9 @@
#ifndef OCD_H #ifndef OCD_H
#define OCD_H #define OCD_H
struct mem_attrib;
struct target_ops;
/* Wiggler serial protocol definitions */ /* Wiggler serial protocol definitions */
#define DLE 020 /* Quote char */ #define DLE 020 /* Quote char */

View File

@@ -22,6 +22,7 @@
#ifndef PPC_TDEP_H #ifndef PPC_TDEP_H
#define PPC_TDEP_H #define PPC_TDEP_H
struct gdbarch;
struct frame_info; struct frame_info;
struct value; struct value;

View File

@@ -22,6 +22,8 @@
#ifndef REMOTE_UTILS_H #ifndef REMOTE_UTILS_H
#define REMOTE_UTILS_H #define REMOTE_UTILS_H
struct target_ops;
#include "target.h" #include "target.h"
struct serial; struct serial;

View File

@@ -22,6 +22,9 @@
#ifndef SER_UNIX_H #ifndef SER_UNIX_H
#define SER_UNIX_H #define SER_UNIX_H
struct serial;
struct ui_file;
/* Generic UNIX/FD functions */ /* Generic UNIX/FD functions */
extern int ser_unix_nop_flush_output (struct serial *scb); extern int ser_unix_nop_flush_output (struct serial *scb);

View File

@@ -22,6 +22,8 @@
#ifndef SERIAL_H #ifndef SERIAL_H
#define SERIAL_H #define SERIAL_H
struct ui_file;
/* For most routines, if a failure is indicated, then errno should be /* For most routines, if a failure is indicated, then errno should be
examined. */ examined. */

View File

@@ -19,6 +19,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct objfile;
/* Critical offsets and sizes which describe struct r_debug and /* Critical offsets and sizes which describe struct r_debug and
struct link_map on SVR4-like targets. All offsets and sizes are struct link_map on SVR4-like targets. All offsets and sizes are
in bytes unless otherwise specified. */ in bytes unless otherwise specified. */

View File

@@ -21,6 +21,8 @@
#ifndef SOURCE_H #ifndef SOURCE_H
#define SOURCE_H #define SOURCE_H
struct symtab;
/* Open a source file given a symtab S. Returns a file descriptor or /* Open a source file given a symtab S. Returns a file descriptor or
negative number for error. */ negative number for error. */
extern int open_source_file (struct symtab *s); extern int open_source_file (struct symtab *s);

View File

@@ -18,6 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct serial;
void load_srec (struct serial *desc, const char *file, bfd_vma load_offset, void load_srec (struct serial *desc, const char *file, bfd_vma load_offset,
int maxrecsize, int flags, int hashmark, int maxrecsize, int flags, int hashmark,
int (*waitack) (void)); int (*waitack) (void));

View File

@@ -19,6 +19,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct objfile;
/* Definitions, prototypes, etc for stabs debugging format support /* Definitions, prototypes, etc for stabs debugging format support
functions. functions.

View File

@@ -26,7 +26,7 @@
/* This file requires that you first include "bfd.h". */ /* This file requires that you first include "bfd.h". */
/* Opaque declarations. */ /* Opaque declarations. */
struct objfile;
struct obstack; struct obstack;
struct block; struct block;

View File

@@ -25,7 +25,9 @@
#define SYMTAB_H 1 #define SYMTAB_H 1
/* Opaque declarations. */ /* Opaque declarations. */
struct ui_file;
struct frame_info;
struct symbol;
struct obstack; struct obstack;
struct objfile; struct objfile;
struct block; struct block;

View File

@@ -23,6 +23,10 @@
#if !defined (TARGET_H) #if !defined (TARGET_H)
#define TARGET_H #define TARGET_H
struct objfile;
struct ui_file;
struct mem_attrib;
/* This include file defines the interface between the main part /* This include file defines the interface between the main part
of the debugger, and the part which is target-specific, or of the debugger, and the part which is target-specific, or
specific to the communications interface between us and the specific to the communications interface between us and the

View File

@@ -22,6 +22,8 @@
#ifndef TYPEPRINT_H #ifndef TYPEPRINT_H
#define TYPEPRINT_H #define TYPEPRINT_H
struct ui_file;
void print_type_scalar (struct type * type, LONGEST, 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, void c_type_print_varspec_suffix (struct type *, struct ui_file *, int,

View File

@@ -23,6 +23,10 @@
#if !defined (VALUE_H) #if !defined (VALUE_H)
#define VALUE_H 1 #define VALUE_H 1
struct ui_file;
struct expression;
struct symbol;
struct type;
struct regcache; struct regcache;
struct block; struct block;

View File

@@ -23,6 +23,9 @@
#ifndef X86_64_TDEP_H #ifndef X86_64_TDEP_H
#define X86_64_TDEP_H #define X86_64_TDEP_H
struct gdbarch;
struct frame_info;
#include "i386-tdep.h" #include "i386-tdep.h"
extern int x86_64_num_regs; extern int x86_64_num_regs;

View File

@@ -18,6 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
struct serial;
int xmodem_init_xfer (struct serial *desc); int xmodem_init_xfer (struct serial *desc);
void send_xmodem_packet (struct serial *desc, unsigned char *packet, int len, void send_xmodem_packet (struct serial *desc, unsigned char *packet, int len,
int hashmark); int hashmark);