2002-06-14 Chris Demetriou <cgd@broadcom.com>
[deliverable/binutils-gdb.git] / gdb / config / i386 / tm-i386nw.h
CommitLineData
c906108c 1/* Macro definitions for i386 running NetWare.
b6ba6518
KB
2 Copyright 1993, 1994, 1995, 1998, 1999, 2000
3 Free Software Foundation, Inc.
c906108c 4
c5aa993b 5 This file is part of GDB.
c906108c 6
c5aa993b
JM
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.
c906108c 11
c5aa993b
JM
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.
c906108c 16
c5aa993b
JM
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. */
c906108c
SS
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
c4093a6a 29#define FRAME_CHAIN_VALID(fp,fi) func_frame_chain_valid (fp, fi)
c906108c
SS
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
a14ed312 45extern int get_longjmp_target (CORE_ADDR *);
c906108c
SS
46
47#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
48
c5aa993b 49#endif /* ifndef TM_I386NW_H */
This page took 0.189093 seconds and 4 git commands to generate.