xref: /openbsd-src/gnu/usr.bin/binutils/gdb/config/mips/tm-linux.h (revision 11efff7f3ac2b3cfeff0c0cddc14294d9b3aca4f)
1*b725ae77Skettenis /* Target-dependent definitions for GNU/Linux MIPS.
2*b725ae77Skettenis 
3*b725ae77Skettenis    Copyright 2001, 2002, 2004 Free Software Foundation, Inc.
4*b725ae77Skettenis 
5*b725ae77Skettenis    This file is part of GDB.
6*b725ae77Skettenis 
7*b725ae77Skettenis    This program is free software; you can redistribute it and/or modify
8*b725ae77Skettenis    it under the terms of the GNU General Public License as published by
9*b725ae77Skettenis    the Free Software Foundation; either version 2 of the License, or
10*b725ae77Skettenis    (at your option) any later version.
11*b725ae77Skettenis 
12*b725ae77Skettenis    This program is distributed in the hope that it will be useful,
13*b725ae77Skettenis    but WITHOUT ANY WARRANTY; without even the implied warranty of
14*b725ae77Skettenis    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*b725ae77Skettenis    GNU General Public License for more details.
16*b725ae77Skettenis 
17*b725ae77Skettenis    You should have received a copy of the GNU General Public License
18*b725ae77Skettenis    along with this program; if not, write to the Free Software
19*b725ae77Skettenis    Foundation, Inc., 59 Temple Place - Suite 330,
20*b725ae77Skettenis    Boston, MA 02111-1307, USA.  */
21*b725ae77Skettenis 
22*b725ae77Skettenis #ifndef TM_MIPSLINUX_H
23*b725ae77Skettenis #define TM_MIPSLINUX_H
24*b725ae77Skettenis 
25*b725ae77Skettenis #include "mips/tm-mips.h"
26*b725ae77Skettenis 
27*b725ae77Skettenis /* We don't want to inherit tm-mips.h's shared library trampoline code.  */
28*b725ae77Skettenis 
29*b725ae77Skettenis #undef IN_SOLIB_RETURN_TRAMPOLINE
30*b725ae77Skettenis #undef SKIP_TRAMPOLINE_CODE
31*b725ae77Skettenis #undef IGNORE_HELPER_CALL
32*b725ae77Skettenis 
33*b725ae77Skettenis /* GNU/Linux MIPS has __SIGRTMAX == 127.  */
34*b725ae77Skettenis 
35*b725ae77Skettenis #ifndef REALTIME_LO
36*b725ae77Skettenis #define REALTIME_LO 32
37*b725ae77Skettenis #define REALTIME_HI 128
38*b725ae77Skettenis #endif
39*b725ae77Skettenis 
40*b725ae77Skettenis #include "config/tm-linux.h"
41*b725ae77Skettenis 
42*b725ae77Skettenis /* We do single stepping in software.  */
43*b725ae77Skettenis 
44*b725ae77Skettenis #define SOFTWARE_SINGLE_STEP_P() 1
45*b725ae77Skettenis #define SOFTWARE_SINGLE_STEP(sig,bp_p) mips_software_single_step (sig, bp_p)
46*b725ae77Skettenis 
47*b725ae77Skettenis #undef IN_SOLIB_DYNSYM_RESOLVE_CODE
48*b725ae77Skettenis #define IN_SOLIB_DYNSYM_RESOLVE_CODE(PC) mips_linux_in_dynsym_resolve_code (PC)
49*b725ae77Skettenis int mips_linux_in_dynsym_resolve_code (CORE_ADDR pc);
50*b725ae77Skettenis 
51*b725ae77Skettenis /* We don't want all of tm-sysv4.h's shared library trampoline code either.
52*b725ae77Skettenis    Note that by undefining IN_SOLIB_CALL_TRAMPOLINE here we will use the
53*b725ae77Skettenis    gdbarch vector's version instead.  */
54*b725ae77Skettenis 
55*b725ae77Skettenis #undef IN_SOLIB_CALL_TRAMPOLINE
56*b725ae77Skettenis 
57*b725ae77Skettenis #endif /* TM_MIPSLINUX_H */
58