]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/sparc/nm-sol2.h
Updated copyright notices for most files.
[thirdparty/binutils-gdb.git] / gdb / config / sparc / nm-sol2.h
CommitLineData
386c036b
MK
1/* Native-dependent definitions for Solaris SPARC.
2
0fb0cc75 3 Copyright 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
c906108c 4
c5aa993b 5 This file is part of GDB.
c906108c 6
c5aa993b
JM
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
a9762ec7 9 the Free Software Foundation; either version 3 of the License, or
c5aa993b 10 (at your option) any later version.
c906108c 11
c5aa993b
JM
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
c906108c 16
c5aa993b 17 You should have received a copy of the GNU General Public License
a9762ec7 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
c906108c 19
386c036b
MK
20#ifndef NM_SOL2_H
21#define NM_SOL2_H
c906108c 22
386c036b
MK
23#define GDB_GREGSET_T prgregset_t
24#define GDB_FPREGSET_T prfpregset_t
c906108c 25
386c036b 26/* Hardware wactchpoints. */
0a415da9 27
386c036b
MK
28/* Solaris 2.6 and above can do HW watchpoints. */
29#ifdef NEW_PROC_API
2f09097b
ND
30
31#define TARGET_HAS_HARDWARE_WATCHPOINTS
32
386c036b 33/* The man page for proc(4) on Solaris 2.6 and up says that the system
2f09097b 34 can support "thousands" of hardware watchpoints, but gives no
386c036b
MK
35 method for finding out how many; It doesn't say anything about the
36 allowed size for the watched area either. So we just tell GDB
37 'yes'. */
38#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1
2f09097b
ND
39
40/* When a hardware watchpoint fires off the PC will be left at the
386c036b
MK
41 instruction following the one which caused the watchpoint. It will
42 *NOT* be necessary for GDB to step over the watchpoint. */
7df1a324 43#define HAVE_CONTINUABLE_WATCHPOINT 1
2f09097b 44
39f77062 45extern int procfs_stopped_by_watchpoint (ptid_t);
2f09097b 46#define STOPPED_BY_WATCHPOINT(W) \
39f77062 47 procfs_stopped_by_watchpoint(inferior_ptid)
2f09097b 48
386c036b
MK
49/* Use these macros for watchpoint insertion/deletion. TYPE can be 0
50 (write watch), 1 (read watch), 2 (access watch (read/write). */
2f09097b 51
39f77062 52extern int procfs_set_watchpoint (ptid_t, CORE_ADDR, int, int, int);
2f09097b 53#define target_insert_watchpoint(ADDR, LEN, TYPE) \
39f77062 54 procfs_set_watchpoint (inferior_ptid, ADDR, LEN, TYPE, 1)
2f09097b 55#define target_remove_watchpoint(ADDR, LEN, TYPE) \
39f77062 56 procfs_set_watchpoint (inferior_ptid, ADDR, 0, 0, 0)
2f09097b
ND
57
58#endif /* NEW_PROC_API */
386c036b
MK
59
60#endif /* nm-sol2.h */