* config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
[deliverable/binutils-gdb.git] / gdb / config / mips / tm-linux.h
1 /* Target-dependent definitions for GNU/Linux MIPS.
2
3 Copyright 2001, 2002 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_CALL_TRAMPOLINE
30 #undef IN_SOLIB_RETURN_TRAMPOLINE
31 #undef SKIP_TRAMPOLINE_CODE
32 #undef IGNORE_HELPER_CALL
33
34 /* GNU/Linux MIPS has __SIGRTMAX == 127. */
35
36 #ifndef REALTIME_LO
37 #define REALTIME_LO 32
38 #define REALTIME_HI 128
39 #endif
40
41 #include "config/tm-linux.h"
42
43 /* There's an E_MIPS_ABI_O32 flag in e_flags, but we don't use it - in
44 fact, using it may violate the o32 ABI. */
45
46 #define MIPS_DEFAULT_ABI MIPS_ABI_O32
47
48 /* Use target_specific function to define link map offsets. */
49
50 extern struct link_map_offsets *mips_linux_svr4_fetch_link_map_offsets (void);
51 #define SVR4_FETCH_LINK_MAP_OFFSETS() \
52 mips_linux_svr4_fetch_link_map_offsets ()
53
54 /* Details about jmp_buf. */
55
56 #define MIPS_LINUX_JB_ELEMENT_SIZE 4
57 #define MIPS_LINUX_JB_PC 0
58
59 /* Figure out where the longjmp will land. Slurp the arguments out of the
60 stack. We expect the first arg to be a pointer to the jmp_buf structure
61 from which we extract the pc (JB_PC) that we will land at. The pc is
62 copied into ADDR. This routine returns 1 on success. */
63
64 #define GET_LONGJMP_TARGET(ADDR) mips_linux_get_longjmp_target(ADDR)
65 extern int mips_linux_get_longjmp_target (CORE_ADDR *);
66
67 /* We do single stepping in software. */
68
69 #define SOFTWARE_SINGLE_STEP_P() 1
70 #define SOFTWARE_SINGLE_STEP(sig,bp_p) mips_software_single_step (sig, bp_p)
71
72 /* FIXME: This still needs to be implemented. */
73
74 #undef IN_SIGTRAMP
75 #define IN_SIGTRAMP(pc, name) (0)
76
77 #endif /* TM_MIPSLINUX_H */
This page took 0.036043 seconds and 5 git commands to generate.