* config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
[binutils-gdb.git] / gdb / config / mips / tm-embed.h
1 /* Copyright 1993, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
2
3 This file is part of GDB.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19
20 #include "mips/tm-bigmips.h"
21
22 /* Watchpoint support */
23
24 #define TARGET_HAS_HARDWARE_WATCHPOINTS
25
26 /* Use these macros for watchpoint insertion/deletion. */
27 /* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */
28
29 #define target_insert_watchpoint(addr, len, type) \
30 remote_mips_set_watchpoint (addr, len, type)
31 int remote_mips_set_watchpoint (CORE_ADDR addr, int len, int type);
32
33 #define target_remove_watchpoint(addr, len, type) \
34 remote_mips_remove_watchpoint (addr, len, type)
35 int remote_mips_remove_watchpoint (CORE_ADDR addr, int len, int type);
36
37 /* We need to remove watchpoints when stepping, else we hit them again! */
38
39 #define HAVE_NONSTEPPABLE_WATCHPOINT 1
40
41 int remote_mips_stopped_by_watchpoint (void);
42 #define STOPPED_BY_WATCHPOINT(w) remote_mips_stopped_by_watchpoint ()
43
44 #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
45 remote_mips_can_use_hardware_watchpoint(cnt)
46 int remote_mips_can_use_hardware_watchpoint (int cnt);