OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [config/] [frv/] [tm-frv.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* Target definitions for the Fujitsu FR-V, for GDB, the GNU Debugger.
2
   Copyright 2000 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 GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
24
 
25
 
26
#define TARGET_HW_BREAK_LIMIT 4
27
#define TARGET_HW_WATCH_LIMIT 4
28
 
29
#define TARGET_HAS_HARDWARE_WATCHPOINTS
30
 
31
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
32
        frv_check_watch_resources (type, cnt, ot)
33
extern int frv_check_watch_resources (int type, int cnt, int ot);
34
 
35
/* When a hardware watchpoint fires off the PC will be left at the
36
   instruction which caused the watchpoint.  It will be necessary for
37
   GDB to step over the watchpoint. */
38
 
39
/*#define HAVE_STEPPABLE_WATCHPOINT 1*/
40
 
41
#define STOPPED_BY_WATCHPOINT(W) \
42
   ((W).kind == TARGET_WAITKIND_STOPPED \
43
   && (W).value.sig == TARGET_SIGNAL_TRAP \
44
   && (frv_stopped_data_address() != ((CORE_ADDR)0)))
45
extern CORE_ADDR frv_stopped_data_address(void);
46
 
47
/* Use these macros for watchpoint insertion/deletion.  */
48
#define target_insert_watchpoint(addr, len, type) \
49
                remote_insert_watchpoint (addr, len, type)
50
#define target_remove_watchpoint(addr, len, type) \
51
                remote_remove_watchpoint (addr, len, type)
52
#define target_insert_hw_breakpoint(addr, shadow) \
53
                remote_insert_hw_breakpoint (addr, 1)
54
#define target_remove_hw_breakpoint(addr, shadow) \
55
                remote_remove_hw_breakpoint (addr, 1)
56
#define target_stopped_data_address() frv_stopped_data_address()
57
 
58
/* These declarations should be in remote.h, no?  */
59
extern int remote_insert_watchpoint (CORE_ADDR addr, int len, int type);
60
extern int remote_remove_watchpoint (CORE_ADDR addr, int len, int type);
61
extern int remote_insert_hw_breakpoint (CORE_ADDR addr, int len);
62
extern int remote_remove_hw_breakpoint (CORE_ADDR addr, int len);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.