Commit | Line | Data |
---|---|---|
0fb3e100 SG |
1 | /* Definitions for General Magic MIPS target. |
2 | Copyright (C) 1995 Free Software Foundation, Inc. | |
3 | ||
4 | This file is part of GDB. | |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2 of the License, or | |
9 | (at your option) any later version. | |
10 | ||
11 | This program is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with this program; if not, write to the Free Software | |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
19 | ||
20 | #include "mips/tm-idt.h" | |
21 | ||
22 | /* For some reason GM can't hack this... */ | |
23 | ||
24 | #undef GET_LONGJMP_TARGET | |
25 | ||
26 | #define GENERAL_MAGIC_HACKS | |
27 | ||
28 | #define SEND_BREAK_ON_QUIT | |
29 | ||
30 | ||
31 | /* Watchpoint support */ | |
32 | ||
33 | #define TARGET_HAS_HARDWARE_WATCHPOINTS | |
34 | ||
35 | #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \ | |
36 | (1 == 1) /* We allow all types of hardware watchpoints */ | |
37 | ||
38 | /* Use these macros for watchpoint insertion/deletion. */ | |
39 | /* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ | |
40 | ||
41 | #define target_insert_watchpoint(addr, len, type) \ | |
42 | remote_mips_set_watchpoint (addr, len, type) | |
43 | ||
44 | #define target_remove_watchpoint(addr, len, type) \ | |
45 | remote_mips_remove_watchpoint (addr, len, type) | |
46 | ||
47 | /* We need to remove watchpoints when stepping, else we hit them again! */ | |
48 | ||
49 | #define HAVE_NONSTEPPABLE_WATCHPOINT | |
50 | ||
51 | #define STOPPED_BY_WATCHPOINT(w) remote_mips_stopped_by_watchpoint () | |
52 | ||
53 | #define FLUSH_CACHED_MEMORY() flush_cached_memory() |