]>
Commit | Line | Data |
---|---|---|
a4b4f520 SG |
1 | /* Macro definitions for i386 running NetWare. |
2 | Copyright 1993, 1994 Free Software Foundation, Inc. | |
db85f523 FF |
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 | |
6c9638b4 | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
db85f523 FF |
19 | |
20 | /* Override number of expected traps from sysv. */ | |
21 | #define START_INFERIOR_TRAPS_EXPECTED 2 | |
22 | ||
23 | /* FIXME: tm-i386v.h seems to be used in a lot of target config files as a | |
24 | generic i386 target config file. The parts that are truely generic should | |
25 | be extracted out and placed in a tm-i386.h file that all the others, | |
26 | including tm-i386v.h, includes as needed. */ | |
27 | #include "i386/tm-i386v.h" | |
a4b4f520 SG |
28 | |
29 | /* Stop backtracing when we wander into main. */ | |
30 | ||
31 | #define FRAME_CHAIN_VALID_ALTERNATE | |
cad1498f SG |
32 | |
33 | ||
34 | /* Offsets (in target ints) into jmp_buf. Not defined in any system header | |
35 | file, so we have to step through setjmp/longjmp with a debugger and figure | |
36 | them out. */ | |
37 | ||
38 | #define JB_ELEMENT_SIZE 4 /* jmp_buf[] is array of ints */ | |
39 | ||
40 | #define JB_PC 6 /* Setjmp()'s return PC saved here */ | |
41 | ||
42 | /* Figure out where the longjmp will land. Slurp the args out of the stack. | |
43 | We expect the first arg to be a pointer to the jmp_buf structure from which | |
44 | we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. | |
45 | This routine returns true on success */ | |
46 | ||
47 | extern int | |
48 | get_longjmp_target PARAMS ((CORE_ADDR *)); | |
49 | ||
50 | #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) |