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 / mips / tm-mipsv4.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-17  |  1.7 KB  |  45 lines

  1. /* Target machine description for MIPS running SVR4, for GDB.
  2.    Copyright 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. #include "mips/tm-bigmips.h"
  21. #include "tm-sysv4.h"
  22.  
  23. /* When calling functions on a MIPS SVR4 ABI compliant platform
  24.    $25 must hold the function address.  Dest_Reg is a macro
  25.    used in CALL_DUMMY in tm-mips.h.  */
  26. #undef Dest_Reg
  27. #define Dest_Reg 25
  28.  
  29. /* The signal handler trampoline is called _sigtramp.  */
  30. #undef IN_SIGTRAMP
  31. #define IN_SIGTRAMP(pc, name) ((name) && STREQ ("_sigtramp", name))
  32.  
  33. /* On entry to the signal handler trampoline, an ucontext is already
  34.    pushed on the stack. We can get at the saved registers via the
  35.    mcontext which is contained within the ucontext.  */
  36. #define SIGFRAME_BASE    0
  37. #define SIGFRAME_REGSAVE_OFF    (SIGFRAME_BASE + 40)
  38. #define SIGFRAME_PC_OFF        (SIGFRAME_BASE + 40 + 35 * 4)
  39.  
  40. /* Use the alternate method of determining valid frame chains. */
  41. #define FRAME_CHAIN_VALID_ALTERNATE
  42.  
  43. /* Convert a DWARF register number to a gdb REGNUM.  */
  44. #define DWARF_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-32)
  45.