aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-sun386.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tm-sun386.h')
-rw-r--r--gdb/tm-sun386.h31
1 files changed, 29 insertions, 2 deletions
diff --git a/gdb/tm-sun386.h b/gdb/tm-sun386.h
index 5b43f5c..3c5b696 100644
--- a/gdb/tm-sun386.h
+++ b/gdb/tm-sun386.h
@@ -1,5 +1,5 @@
-/* Parameters for execution on a Sun 386i, for GDB, the GNU debugger.
- Copyright (C) 1986, 1987, 1991 Free Software Foundation, Inc.
+/* Parameters for a Sun 386i target machine, for GDB, the GNU debugger.
+ Copyright 1986, 1987, 1991, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@@ -49,6 +49,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define SKIP_PROLOGUE(frompc) {(frompc) = i386_skip_prologue((frompc));}
+extern int
+i386_skip_prologue PARAMS ((int));
+
/* Immediately after a function call, return the saved pc.
Can't always go through the frames for this because on some machines
the new frame is not set up until the new function executes
@@ -174,6 +177,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
else \
bcopy ((FROM), (TO), 4); }
+extern void
+i387_to_double PARAMS ((char *, char *));
+
/* Convert data from virtual format for register REGNUM
to raw format for register REGNUM. */
@@ -183,6 +189,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
else \
bcopy ((FROM), (TO), 4); }
+extern void
+double_to_i387 PARAMS ((char *, char *));
+
/* Return the GDB type object for the "standard" data type
of data in register N. */
@@ -251,6 +260,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define FRAME_NUM_ARGS(numargs, fi) (numargs) = i386_frame_num_args(fi)
+#ifdef __STDC__ /* Forward decl's for prototypes */
+struct frame_info;
+struct frame_saved_regs;
+#endif
+
+extern int
+i386_frame_num_args PARAMS ((struct frame_info *));
+
/* Return number of bytes at start of arglist that are not really args. */
#define FRAME_ARGS_SKIP 8
@@ -264,6 +281,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
{ i386_frame_find_saved_regs ((frame_info), &(frame_saved_regs)); }
+extern void
+i386_frame_find_saved_regs PARAMS ((struct frame_info *,
+ struct frame_saved_regs *));
+
/* Things needed for making the inferior call functions. */
@@ -271,10 +292,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define PUSH_DUMMY_FRAME { i386_push_dummy_frame (); }
+extern void
+i386_push_dummy_frame PARAMS ((void));
+
/* Discard from the stack the innermost frame, restoring all registers. */
#define POP_FRAME { i386_pop_frame (); }
+extern void
+i386_pop_frame PARAMS ((void));
+
/* this is
* call 11223344 (32 bit relative)
* int3