OSDN Git Service

Copyright updates for 2007.
[pf3gnuchains/pf3gnuchains3x.git] / gdb / config / i386 / nm-i386sco5.h
1 /* Native support for SCO OpenServer 5.
2    Copyright 1996, 1998, 2002, 2007 Free Software Foundation, Inc.
3    Re-written by J. Kean Johnston <jkj@sco.com>.
4    Originally written by Robert Lipe <robertl@dgii.com>, based on 
5    work by Ian Lance Taylor <ian@cygnus.com> and 
6    Martin Walker <maw@netcom.com>.
7
8    This file is part of GDB.
9
10    This program is free software; you can redistribute it and/or modify
11    it under the terms of the GNU General Public License as published by
12    the Free Software Foundation; either version 2 of the License, or
13    (at your option) any later version.
14
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 59 Temple Place - Suite 330,
23    Boston, MA 02111-1307, USA.  */
24
25 #ifndef NM_I386SCO5_H
26 #define NM_I386SCO5_H
27
28 /* Basically, its a lot like the older versions ... */
29 #include "i386/nm-i386sco.h"
30
31 /* SCO is unlike other SVR4 systems in that it has SVR4 style shared
32    libs, with a slight twist.  We expect 3 traps (2 for the exec and
33    one for the dynamic loader).  After the third trap we insert the
34    shared library breakpoints, then wait for the 4th trap.  */
35
36 #undef START_INFERIOR_TRAPS_EXPECTED
37 #define START_INFERIOR_TRAPS_EXPECTED 3
38
39 /* SCO does not provide <sys/ptrace.h>.  However, infptrace.c does not
40    have defaults for these values.  */
41
42 #define PTRACE_ATTACH 10
43 #define PTRACE_DETACH 11
44
45 /* Return the size of the user struct.  */
46
47 #define KERNEL_U_SIZE kernel_u_size ()
48 extern int kernel_u_size (void);
49
50 /* Hardware-assisted breakpoints and watchpoints.  */
51
52 /* We can also do hardware watchpoints.  */
53 #define TARGET_HAS_HARDWARE_WATCHPOINTS
54 #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
55
56 /* After a watchpoint trap, the PC points to the instruction which
57    caused the trap.  But we can continue over it without disabling the
58    trap.  */
59 #define HAVE_CONTINUABLE_WATCHPOINT 1
60 #define HAVE_STEPPABLE_WATCHPOINT
61
62 #define STOPPED_BY_WATCHPOINT(W)  \
63   i386_stopped_by_watchpoint (PIDGET (inferior_ptid))
64
65 #define target_insert_watchpoint(addr, len, type)  \
66   i386_insert_watchpoint (PIDGET (inferior_ptid), addr, len, type)
67
68 #define target_remove_watchpoint(addr, len, type)  \
69   i386_remove_watchpoint (PIDGET (inferior_ptid), addr, len)
70
71 #endif /* nm-i386sco5.h */