home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / GDB / GDB-4.13 / GDB-4 / gdb-4.13 / gdb / config / m88k / tm-cxux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-17  |  1.7 KB  |  57 lines

  1. /* Target definitions for m88k running Harris CX/UX.
  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 HARRIS_TARGET 1
  21.  
  22. /* Type of X registers, as supplied by the OS */
  23.  
  24. typedef struct {
  25.    long w1, w2, w3, w4;
  26. } X_REGISTER_RAW_TYPE;
  27.  
  28. #define X_REGISTER_VIRTUAL_TYPE double
  29.  
  30. #include "m88k/tm-m88k.h"
  31.  
  32. #define ADD_SHARED_SYMBOL_FILES(args,have_tty)  add_shared_symbol_files ()
  33.  
  34. #define CONVERT_REGISTER_ADDRESS
  35.  
  36. /* Always allocate space for both, but recognize that the m88100 has no
  37.    FP_REGS.  */
  38.  
  39. #define ARCH_NUM_REGS (target_is_m88110 ? (GP_REGS + FP_REGS) : (GP_REGS))
  40.  
  41. /* Don't need this grotesquerie.  */
  42.  
  43. #undef SHIFT_INST_REGS
  44.  
  45. /* Extended registers are treated as 16 bytes by Harris' OS's. 
  46.    We treat them as 16 bytes here for consistency's sake.  */
  47.  
  48. #undef REGISTER_RAW_SIZE
  49. #define REGISTER_RAW_SIZE(N) ((N) < XFP_REGNUM ? 4 : 16)
  50.  
  51. #undef REGISTER_BYTE
  52. #define REGISTER_BYTE(N) \
  53.   ((N) >= XFP_REGNUM \
  54.    ? (((GP_REGS) * REGISTER_RAW_SIZE(0)) + \
  55.       (((N) - XFP_REGNUM) * REGISTER_RAW_SIZE(XFP_REGNUM))) \
  56.    : ((N) * REGISTER_RAW_SIZE(0)))
  57.