home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / gdb-4.14-src.lha / gdb-4.14 / gdb / config / m68k / tm-delta68.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-18  |  2.2 KB  |  65 lines

  1. /* Target definitions for delta68.
  2.    Copyright 1993, 1994 Free Software Foundation, Inc.
  3.  
  4. This file is part of GDB.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Define BPT_VECTOR if it is different than the default.
  21.    This is the vector number used by traps to indicate a breakpoint. */
  22.  
  23. #define BPT_VECTOR 0x1
  24.  
  25. #undef CPLUS_MARKER
  26. #define CPLUS_MARKER '%'
  27.  
  28. #define GCC_COMPILED_FLAG_SYMBOL "gcc_compiled%"
  29. #define GCC2_COMPILED_FLAG_SYMBOL "gcc2_compiled%"
  30.  
  31. /* Amount PC must be decremented by after a breakpoint.
  32.    On the Delta, the kernel decrements it for us.  */
  33.  
  34. #define DECR_PC_AFTER_BREAK 0
  35.  
  36. /* Not sure what happens if we try to store this register, but
  37.    phdm@info.ucl.ac.be says we need this define.  */
  38.  
  39. #define CANNOT_STORE_REGISTER(regno)    (regno == FPI_REGNUM)
  40.  
  41. /* Extract from an array REGBUF containing the (raw) register state
  42.    a function return value of type TYPE, and copy that, in virtual format,
  43.    into VALBUF.  */
  44.  
  45. /* When it returns a pointer value, use a0 in sysV68.  */
  46.  
  47. #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
  48.   memcpy ((VALBUF),                            \
  49.       (char *) ((REGBUF) +                        \
  50.             (TYPE_CODE(TYPE) == TYPE_CODE_PTR ? 8 * 4 :        \
  51.              (TYPE_LENGTH(TYPE) >= 4 ? 0 : 4 - TYPE_LENGTH(TYPE)))), \
  52.       TYPE_LENGTH(TYPE))
  53.  
  54. /* Write into appropriate registers a function return value
  55.    of type TYPE, given in virtual format.  */
  56.  
  57. /* When it returns a pointer value, use a0 in sysV68.  */
  58.  
  59. #define STORE_RETURN_VALUE(TYPE,VALBUF) \
  60.   write_register_bytes ((TYPE_CODE(TYPE) == TYPE_CODE_PTR ? 8 * 4 : 0),    \
  61.             VALBUF, TYPE_LENGTH (TYPE))
  62.  
  63.  
  64. #include "m68k/tm-m68k.h"
  65.