Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Definitions for native support of irix4. |
2 | ||
b6ba6518 KB |
3 | Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000 |
4 | Free Software Foundation, Inc. | |
c906108c | 5 | |
c5aa993b | 6 | This file is part of GDB. |
c906108c | 7 | |
c5aa993b JM |
8 | This program is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 2 of the License, or | |
11 | (at your option) any later version. | |
c906108c | 12 | |
c5aa993b JM |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
c906108c | 17 | |
c5aa993b JM |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software | |
20 | Foundation, Inc., 59 Temple Place - Suite 330, | |
21 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
22 | |
23 | /* | |
24 | * Let's use /debug instead of all this dangerous mucking about | |
25 | * with ptrace(), which seems *extremely* fragile, anyway. | |
26 | */ | |
27 | #define USE_PROC_FS | |
28 | #define CTL_PROC_NAME_FMT "/debug/%d" | |
29 | #define AS_PROC_NAME_FMT "/debug/%d" | |
30 | #define MAP_PROC_NAME_FMT "/debug/%d" | |
31 | #define STATUS_PROC_NAME_FMT "/debug/%d" | |
32 | ||
33 | /* Don't need special routines for the SGI -- we can use infptrace.c */ | |
34 | #undef FETCH_INFERIOR_REGISTERS | |
35 | ||
36 | #define U_REGS_OFFSET 0 | |
37 | ||
38 | /* Is this really true or is this just a leftover from a DECstation | |
39 | config file? */ | |
40 | ||
41 | #define ONE_PROCESS_WRITETEXT | |
42 | ||
43 | #define TARGET_HAS_HARDWARE_WATCHPOINTS | |
44 | ||
45 | /* Temporary new watchpoint stuff */ | |
46 | #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \ | |
47 | ((type) == bp_hardware_watchpoint) | |
48 | ||
49 | /* When a hardware watchpoint fires off the PC will be left at the | |
50 | instruction which caused the watchpoint. It will be necessary for | |
51 | GDB to step over the watchpoint. */ | |
52 | ||
53 | #define STOPPED_BY_WATCHPOINT(W) \ | |
39f77062 KB |
54 | procfs_stopped_by_watchpoint(inferior_ptid) |
55 | extern int procfs_stopped_by_watchpoint (ptid_t); | |
c906108c SS |
56 | |
57 | #define HAVE_NONSTEPPABLE_WATCHPOINT | |
58 | ||
59 | /* Use these macros for watchpoint insertion/deletion. */ | |
60 | /* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ | |
c3f6f71d | 61 | #define target_insert_watchpoint(ADDR, LEN, TYPE) \ |
39f77062 | 62 | procfs_set_watchpoint (inferior_ptid, ADDR, LEN, TYPE, 0) |
c3f6f71d | 63 | #define target_remove_watchpoint(ADDR, LEN, TYPE) \ |
39f77062 KB |
64 | procfs_set_watchpoint (inferior_ptid, ADDR, 0, 0, 0) |
65 | extern int procfs_set_watchpoint (ptid_t, CORE_ADDR, int, int, int); | |
c3f6f71d JM |
66 | |
67 | #define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1 |