Update/correct copyright notices.
[binutils-gdb.git] / gdb / config / i386 / tm-i386nw.h
1 /* Macro definitions for i386 running NetWare.
2 Copyright 1993, 1994, 1995, 1998, 1999, 2000
3 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_I386NW_H
23 #define TM_I386NW_H 1
24
25 #include "i386/tm-i386.h"
26
27 /* Stop backtracing when we wander into main. */
28
29 #define FRAME_CHAIN_VALID(fp,fi) func_frame_chain_valid (fp, fi)
30
31
32 /* Offsets (in target ints) into jmp_buf. Not defined in any system header
33 file, so we have to step through setjmp/longjmp with a debugger and figure
34 them out. */
35
36 #define JB_ELEMENT_SIZE 4 /* jmp_buf[] is array of ints */
37
38 #define JB_PC 6 /* Setjmp()'s return PC saved here */
39
40 /* Figure out where the longjmp will land. Slurp the args out of the stack.
41 We expect the first arg to be a pointer to the jmp_buf structure from which
42 we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
43 This routine returns true on success */
44
45 extern int get_longjmp_target (CORE_ADDR *);
46
47 #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
48
49 #endif /* ifndef TM_I386NW_H */