OSDN Git Service

PARAMS removal.
[pf3gnuchains/pf3gnuchains3x.git] / gdb / config / mips / nm-irix4.h
1 /* Definitions for native support of irix4.
2
3    Copyright (C) 1991, 1992 Free Software Foundation, Inc.
4
5    This file is part of GDB.
6
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.
11
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.
16
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.  */
21
22 /*
23  * Let's use /debug instead of all this dangerous mucking about
24  * with ptrace(), which seems *extremely* fragile, anyway.
25  */
26 #define USE_PROC_FS
27 #define CTL_PROC_NAME_FMT "/debug/%d"
28 #define AS_PROC_NAME_FMT "/debug/%d"
29 #define MAP_PROC_NAME_FMT "/debug/%d"
30 #define STATUS_PROC_NAME_FMT "/debug/%d"
31
32 /* Don't need special routines for the SGI -- we can use infptrace.c */
33 #undef FETCH_INFERIOR_REGISTERS
34
35 #define U_REGS_OFFSET 0
36
37 /* Is this really true or is this just a leftover from a DECstation
38    config file?  */
39
40 #define ONE_PROCESS_WRITETEXT
41
42 #define TARGET_HAS_HARDWARE_WATCHPOINTS
43
44 /* Temporary new watchpoint stuff */
45 #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
46         ((type) == bp_hardware_watchpoint)
47
48 /* When a hardware watchpoint fires off the PC will be left at the
49    instruction which caused the watchpoint.  It will be necessary for
50    GDB to step over the watchpoint. */
51
52 #define STOPPED_BY_WATCHPOINT(W) \
53   procfs_stopped_by_watchpoint(inferior_pid)
54 extern int procfs_stopped_by_watchpoint (int);
55
56 #define HAVE_NONSTEPPABLE_WATCHPOINT
57
58 /* Use these macros for watchpoint insertion/deletion.  */
59 /* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */
60 #define target_insert_watchpoint(ADDR, LEN, TYPE) \
61      procfs_set_watchpoint (inferior_pid, ADDR, LEN, TYPE, 0)
62 #define target_remove_watchpoint(ADDR, LEN, TYPE) \
63      procfs_set_watchpoint (inferior_pid, ADDR, 0, 0, 0)
64 extern int procfs_set_watchpoint (int, CORE_ADDR, int, int, int);
65
66 #define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1