]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/i386/tm-i386sco5.h
Phase 1 of the ptid_t changes.
[thirdparty/binutils-gdb.git] / gdb / config / i386 / tm-i386sco5.h
CommitLineData
c906108c 1/* Macro definitions for GDB on an Intel i386 running SCO Open Server 5.
b6ba6518 2 Copyright 1998 Free Software Foundation, Inc.
c906108c
SS
3 Written by J. Kean Johnston (jkj@sco.com).
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_I386SCO5_H
23#define TM_I386SCO5_H 1
24
25/* Pick up most of what we need from the generic i386 target include file. */
26
27#include "i386/tm-i386.h"
28
29/* Pick up more stuff from the generic SYSV and SVR4 host include files. */
30#include "i386/tm-i386v.h"
31#include "tm-sysv4.h"
32
33#define KERNEL_U_SIZE kernel_u_size()
34
35/*
36 * SCO is unlike other SVR3 targets in that it has SVR4 style shared
37 * libs, with a slight twist. We expect 3 traps (2 for the exec and
38 * one for the dynamic loader). After the third trap we insert the
39 * SOLIB breakpoints, then wait for the 4th trap.
40 */
41#undef START_INFERIOR_TRAPS_EXPECTED
42#define START_INFERIOR_TRAPS_EXPECTED 3
43
44/* We can also do hardware watchpoints */
45#define TARGET_HAS_HARDWARE_WATCHPOINTS
46#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
47
48/* After a watchpoint trap, the PC points to the instruction which
49 caused the trap. But we can continue over it without disabling the
50 trap. */
51#define HAVE_CONTINUABLE_WATCHPOINT
52#define HAVE_STEPPABLE_WATCHPOINT
53
54#define STOPPED_BY_WATCHPOINT(W) \
39f77062 55 i386_stopped_by_watchpoint (PIDGET (inferior_ptid))
c906108c
SS
56
57#define target_insert_watchpoint(addr, len, type) \
39f77062 58 i386_insert_watchpoint (PIDGET (inferior_ptid), addr, len, type)
c906108c
SS
59
60#define target_remove_watchpoint(addr, len, type) \
39f77062 61 i386_remove_watchpoint (PIDGET (inferior_ptid), addr, len)
c906108c 62
c5aa993b 63#endif /* ifndef TM_I386SCO5_H */