Commit | Line | Data |
---|---|---|
92362027 AC |
1 | /* Definitions to make GDB run on an Alpha box under GNU/Linux. The |
2 | definitions here are used when the _target_ system is running | |
3 | GNU/Linux. | |
4 | ||
5 | Copyright 1996, 1998, 1999, 2000, 2002 Free Software Foundation, | |
6 | Inc. | |
c906108c | 7 | |
c5aa993b JM |
8 | This file is part of GDB. |
9 | ||
10 | This program is free software; you can redistribute it and/or modify | |
11 | it under the terms of the GNU General Public License as published by | |
12 | the Free Software Foundation; either version 2 of the License, or | |
13 | (at your option) any later version. | |
14 | ||
15 | This program is distributed in the hope that it will be useful, | |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | GNU General Public License for more details. | |
19 | ||
20 | You should have received a copy of the GNU General Public License | |
21 | along with this program; if not, write to the Free Software | |
22 | Foundation, Inc., 59 Temple Place - Suite 330, | |
23 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
24 | |
25 | #ifndef TM_LINUXALPHA_H | |
26 | #define TM_LINUXALPHA_H | |
27 | ||
28 | #include "alpha/tm-alpha.h" | |
29 | ||
c906108c SS |
30 | /* Get start and end address of sigtramp handler. */ |
31 | ||
6c72f9f9 | 32 | extern LONGEST alpha_linux_sigtramp_offset (CORE_ADDR); |
c906108c SS |
33 | #define SIGTRAMP_START(pc) (pc - alpha_linux_sigtramp_offset (pc)) |
34 | #define SIGTRAMP_END(pc) (SIGTRAMP_START(pc) + 3*4) | |
35 | ||
36 | ||
37 | /* Number of traps that happen between exec'ing the shell to run an | |
38 | inferior, and when we finally get to the inferior code. This is 2 | |
92362027 | 39 | on GNU/Linux and most implementations. */ |
c906108c SS |
40 | #undef START_INFERIOR_TRAPS_EXPECTED |
41 | #define START_INFERIOR_TRAPS_EXPECTED 2 | |
42 | ||
4f2e4a4f | 43 | #include "config/tm-linux.h" |
c906108c SS |
44 | |
45 | #endif /* TM_LINUXALPHA_H */ |