]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/frv/tm-frv.h
Switch the license of all .c files to GPLv3.
[thirdparty/binutils-gdb.git] / gdb / config / frv / tm-frv.h
CommitLineData
456f8b9d 1/* Target definitions for the Fujitsu FR-V, for GDB, the GNU Debugger.
6aba47ca 2 Copyright 2000, 2004, 2007 Free Software Foundation, Inc.
456f8b9d
DB
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
a9762ec7 8 the Free Software Foundation; either version 3 of the License, or
456f8b9d
DB
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
a9762ec7 17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
456f8b9d
DB
18
19/* This target uses an architecture vector for most architecture methods. */
20
456f8b9d
DB
21#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
22 frv_check_watch_resources (type, cnt, ot)
23extern int frv_check_watch_resources (int type, int cnt, int ot);
24
25/* When a hardware watchpoint fires off the PC will be left at the
26 instruction which caused the watchpoint. It will be necessary for
27 GDB to step over the watchpoint. */
28
29/*#define HAVE_STEPPABLE_WATCHPOINT 1*/
30
31#define STOPPED_BY_WATCHPOINT(W) \
32 ((W).kind == TARGET_WAITKIND_STOPPED \
33 && (W).value.sig == TARGET_SIGNAL_TRAP \
4aa7a7f5
JJ
34 && frv_have_stopped_data_address())
35extern int frv_have_stopped_data_address(void);
456f8b9d
DB
36
37/* Use these macros for watchpoint insertion/deletion. */
4aa7a7f5
JJ
38#define target_stopped_data_address(target, x) frv_stopped_data_address(x)
39extern int frv_stopped_data_address(CORE_ADDR *addr_p);
c4d10515 40