1 /* Macro definitions for GDB on an Intel i386 running SCO Open Server 5.
2 Copyright (C) 1998 Free Software Foundation, Inc.
3 Written by J. Kean Johnston (jkj@sco.com).
5 This file is part of GDB.
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.
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.
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, Boston, MA 02111-1307, USA. */
22 #define TM_I386SCO5_H 1
24 /* Pick up most of what we need from the generic i386 target include file. */
26 #include "i386/tm-i386.h"
28 /* Pick up more stuff from the generic SYSV and SVR4 host include files. */
29 #include "i386/tm-i386v.h"
32 #define KERNEL_U_SIZE kernel_u_size()
35 * SCO is unlike other SVR3 targets in that it has SVR4 style shared
36 * libs, with a slight twist. We expect 3 traps (2 for the exec and
37 * one for the dynamic loader). After the third trap we insert the
38 * SOLIB breakpoints, then wait for the 4th trap.
40 #undef START_INFERIOR_TRAPS_EXPECTED
41 #define START_INFERIOR_TRAPS_EXPECTED 3
43 /* We can also do hardware watchpoints */
44 #define TARGET_HAS_HARDWARE_WATCHPOINTS
45 #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
47 /* After a watchpoint trap, the PC points to the instruction which
48 caused the trap. But we can continue over it without disabling the
50 #define HAVE_CONTINUABLE_WATCHPOINT
51 #define HAVE_STEPPABLE_WATCHPOINT
53 #define STOPPED_BY_WATCHPOINT(W) \
54 i386_stopped_by_watchpoint (inferior_pid)
56 #define target_insert_watchpoint(addr, len, type) \
57 i386_insert_watchpoint (inferior_pid, addr, len, type)
59 #define target_remove_watchpoint(addr, len, type) \
60 i386_remove_watchpoint (inferior_pid, addr, len)
62 #endif /* ifndef TM_I386SCO5_H */