Phase 1 of the ptid_t changes.
[deliverable/binutils-gdb.git] / gdb / config / mips / nm-irix4.h
1 /* Definitions for native support of irix4.
2
3 Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000
4 Free Software Foundation, Inc.
5
6 This file is part of GDB.
7
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.
12
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.
17
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. */
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) \
54 procfs_stopped_by_watchpoint(inferior_ptid)
55 extern int procfs_stopped_by_watchpoint (ptid_t);
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) */
61 #define target_insert_watchpoint(ADDR, LEN, TYPE) \
62 procfs_set_watchpoint (inferior_ptid, ADDR, LEN, TYPE, 0)
63 #define target_remove_watchpoint(ADDR, LEN, TYPE) \
64 procfs_set_watchpoint (inferior_ptid, ADDR, 0, 0, 0)
65 extern int procfs_set_watchpoint (ptid_t, CORE_ADDR, int, int, int);
66
67 #define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1
This page took 0.031865 seconds and 4 git commands to generate.