]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/mips/tm-mipsv4.h
This commit was manufactured by cvs2svn to create branch 'readline_4_3
[thirdparty/binutils-gdb.git] / gdb / config / mips / tm-mipsv4.h
CommitLineData
2c830de8 1/* Target machine description for MIPS running SVR4, for GDB.
2 Copyright 1994, 1995, 1998, 1999, 2000 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., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21#include "mips/tm-bigmips.h"
13c00c23 22#include "config/tm-sysv4.h"
2c830de8 23
24/* The signal handler trampoline is called _sigtramp. */
25#undef IN_SIGTRAMP
26#define IN_SIGTRAMP(pc, name) ((name) && STREQ ("_sigtramp", name))
27
28/* On entry to the signal handler trampoline, an ucontext is already
29 pushed on the stack. We can get at the saved registers via the
30 mcontext which is contained within the ucontext. */
31#define SIGFRAME_BASE 0
32#define SIGFRAME_REGSAVE_OFF (SIGFRAME_BASE + 40)
33#define SIGFRAME_PC_OFF (SIGFRAME_BASE + 40 + 35 * 4)
34#define SIGFRAME_FPREGSAVE_OFF (SIGFRAME_BASE + 40 + 36 * 4)
35
2c830de8 36/* Convert a DWARF register number to a gdb REGNUM. */
37#define DWARF_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-32)