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