OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [mips/] [tm-mipsv4.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.