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