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-68k.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-68k.h')
-rw-r--r-- | gdb/tm-68k.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/gdb/tm-68k.h b/gdb/tm-68k.h index 8464263..5c901e1 100644 --- a/gdb/tm-68k.h +++ b/gdb/tm-68k.h @@ -1,5 +1,5 @@ /* Parameters for execution on a 68000 series machine. - Copyright (C) 1986, 1987, 1989, 1990 Free Software Foundation, Inc. + Copyright 1986, 1987, 1989, 1990, 1992 Free Software Foundation, Inc. This file is part of GDB. @@ -37,7 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #if !defined(SKIP_PROLOGUE) #define SKIP_PROLOGUE(ip) {(ip) = m68k_skip_prologue(ip);} -extern CORE_ADDR m68k_skip_prologue (); +extern CORE_ADDR m68k_skip_prologue PARAMS ((CORE_ADDR ip)); #endif /* Immediately after a function call, return the saved pc. @@ -142,7 +142,7 @@ read_memory_integer (read_register (SP_REGNUM), 4) /* Put the declaration out here because if it's in the macros, PCC will complain. */ -extern struct ext_format ext_format_68881; +extern const struct ext_format ext_format_68881; /* Convert data from raw format for register REGNUM to virtual format for register REGNUM. */ @@ -152,7 +152,7 @@ extern struct ext_format ext_format_68881; if ((REGNUM) >= FP0_REGNUM && (REGNUM) < FPC_REGNUM) \ ieee_extended_to_double (&ext_format_68881, (FROM), (double *)(TO)); \ else \ - bcopy ((FROM), (TO), 4); \ + memcpy ((TO), (FROM), 4); \ } /* Convert data from virtual format for register REGNUM @@ -163,7 +163,7 @@ extern struct ext_format ext_format_68881; if ((REGNUM) >= FP0_REGNUM && (REGNUM) < FPC_REGNUM) \ double_to_ieee_extended (&ext_format_68881, (double *)(FROM), (TO)); \ else \ - bcopy ((FROM), (TO), 4); \ + memcpy ((TO), (FROM), 4); \ } /* Return the GDB type object for the "standard" data type @@ -208,12 +208,12 @@ extern struct ext_format ext_format_68881; /* Convert data from raw format for register REGNUM to virtual format for register REGNUM. */ -#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) bcopy ((FROM), (TO), 4); +#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) memcpy ((TO), (FROM), 4); /* Convert data from virtual format for register REGNUM to raw format for register REGNUM. */ -#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) bcopy ((FROM), (TO), 4); +#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) memcpy ((TO), (FROM), 4); /* Return the GDB type object for the "standard" data type of data in register N. */ @@ -264,9 +264,10 @@ extern struct ext_format ext_format_68881; #if !defined (EXTRACT_RETURN_VALUE) #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ - bcopy ((char *)(REGBUF) + \ + memcpy ((VALBUF), \ + (char *)(REGBUF) + \ (TYPE_LENGTH(TYPE) >= 4 ? 0 : 4 - TYPE_LENGTH(TYPE)), \ - VALBUF, TYPE_LENGTH(TYPE)) + TYPE_LENGTH(TYPE)) #endif /* Write into appropriate registers a function return value @@ -532,7 +533,12 @@ extern struct ext_format ext_format_68881; #define PUSH_DUMMY_FRAME { m68k_push_dummy_frame (); } +extern void m68k_push_dummy_frame PARAMS ((void)); + /* Discard from the stack the innermost frame, restoring all registers. */ #define POP_FRAME { m68k_pop_frame (); } +extern void m68k_pop_frame PARAMS ((void)); + + |