Commit | Line | Data |
---|---|---|
b6ba6518 | 1 | /* Copyright 1993, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
c906108c | 2 | |
c5aa993b | 3 | This file is part of GDB. |
c906108c | 4 | |
c5aa993b JM |
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. | |
c906108c | 9 | |
c5aa993b JM |
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. | |
c906108c | 14 | |
c5aa993b JM |
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. */ | |
c906108c | 19 | |
c906108c SS |
20 | #include "mips/tm-bigmips.h" |
21 | ||
22 | #undef DEFAULT_MIPS_TYPE | |
23 | #define DEFAULT_MIPS_TYPE "r3051" | |
24 | ||
25 | /* Watchpoint support */ | |
26 | ||
27 | #define TARGET_HAS_HARDWARE_WATCHPOINTS | |
28 | ||
29 | /* Use these macros for watchpoint insertion/deletion. */ | |
30 | /* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ | |
31 | ||
32 | #define target_insert_watchpoint(addr, len, type) \ | |
33 | remote_mips_set_watchpoint (addr, len, type) | |
a14ed312 | 34 | int remote_mips_set_watchpoint (CORE_ADDR addr, int len, int type); |
c906108c SS |
35 | |
36 | #define target_remove_watchpoint(addr, len, type) \ | |
37 | remote_mips_remove_watchpoint (addr, len, type) | |
a14ed312 | 38 | int remote_mips_remove_watchpoint (CORE_ADDR addr, int len, int type); |
c906108c SS |
39 | |
40 | /* We need to remove watchpoints when stepping, else we hit them again! */ | |
41 | ||
42 | #define HAVE_NONSTEPPABLE_WATCHPOINT | |
43 | ||
d4f3574e | 44 | int remote_mips_stopped_by_watchpoint (void); |
c906108c SS |
45 | #define STOPPED_BY_WATCHPOINT(w) remote_mips_stopped_by_watchpoint () |
46 | ||
47 | #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \ | |
48 | remote_mips_can_use_hardware_watchpoint(cnt) | |
a14ed312 | 49 | int remote_mips_can_use_hardware_watchpoint (int cnt); |