diff options
author | John Gilmore <gnu@cygnus> | 1992-02-21 01:31:56 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-02-21 01:31:56 +0000 |
commit | 75af490bd2b263be24c7e3545f3afba862df7819 (patch) | |
tree | bf2df30b74edf8d4a7224de594cb5a08d4611b2f /gdb/tm-i386v.h | |
parent | 088c3a0b74c7431d31ec5d095f4e68bdd2d90c0b (diff) | |
download | gdb-75af490bd2b263be24c7e3545f3afba862df7819.zip gdb-75af490bd2b263be24c7e3545f3afba862df7819.tar.gz gdb-75af490bd2b263be24c7e3545f3afba862df7819.tar.bz2 |
* environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
inferior.h, language.h, signame.h, target.h, terminal.h,
tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
Lint.
Diffstat (limited to 'gdb/tm-i386v.h')
-rw-r--r-- | gdb/tm-i386v.h | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/gdb/tm-i386v.h b/gdb/tm-i386v.h index 1cee572..5c65423 100644 --- a/gdb/tm-i386v.h +++ b/gdb/tm-i386v.h @@ -1,5 +1,5 @@ /* Macro definitions for i386, Unix System V. - Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc. + Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc. This file is part of GDB. @@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#if !defined (TM_I386V_H) +#define TM_I386V_H 1 + /* * Changes for 80386 by Pace Willisson (pace@prep.ai.mit.edu) * July 1988 @@ -56,6 +59,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 @@ -193,7 +199,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define STORE_STRUCT_RETURN(ADDR, SP) \ { (SP) -= sizeof (ADDR); \ - write_memory ((SP), &(ADDR), sizeof (ADDR)); } + write_memory ((SP), (char *) &(ADDR), sizeof (ADDR)); } /* Extract from an array REGBUF containing the (raw) register state a function return value of type TYPE, and copy that, in virtual format, @@ -251,6 +257,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 +278,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 +289,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 @@ -301,3 +325,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ *((char *)(dummyname) + 3) = ((delta >> 16) & 0xff); \ *((char *)(dummyname) + 4) = ((delta >> 24) & 0xff); \ } + +extern void +print_387_control_word PARAMS ((unsigned int)); + +extern void +print_387_status_word PARAMS ((unsigned int)); + +#endif /* !defined (TM_I386V_H) */ |