OSDN Git Service

Copyright updates for 2007.
[pf3gnuchains/pf3gnuchains3x.git] / gdb / config / frv / tm-frv.h
1 /* Target definitions for the Fujitsu FR-V, for GDB, the GNU Debugger.
2    Copyright 2000, 2004, 2007 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,
19    Boston, MA 02111-1307, USA.  */
20
21 /* This target uses an architecture vector for most architecture methods.  */
22
23 #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
24         frv_check_watch_resources (type, cnt, ot)
25 extern int frv_check_watch_resources (int type, int cnt, int ot);
26
27 /* When a hardware watchpoint fires off the PC will be left at the
28    instruction which caused the watchpoint.  It will be necessary for
29    GDB to step over the watchpoint. */
30
31 /*#define HAVE_STEPPABLE_WATCHPOINT 1*/
32
33 #define STOPPED_BY_WATCHPOINT(W) \
34    ((W).kind == TARGET_WAITKIND_STOPPED \
35    && (W).value.sig == TARGET_SIGNAL_TRAP \
36    && frv_have_stopped_data_address())
37 extern int frv_have_stopped_data_address(void);
38
39 /* Use these macros for watchpoint insertion/deletion.  */
40 #define target_stopped_data_address(target, x) frv_stopped_data_address(x)
41 extern int frv_stopped_data_address(CORE_ADDR *addr_p);
42