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