* sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
[deliverable/binutils-gdb.git] / gdb / config / sparc / nm-sol2.h
CommitLineData
386c036b
MK
1/* Native-dependent definitions for Solaris SPARC.
2
3 Copyright 2003 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
9 the Free Software Foundation; either version 2 of the License, or
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
JM
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
386c036b 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
c906108c 20
386c036b
MK
21#ifndef NM_SOL2_H
22#define NM_SOL2_H
c906108c 23
386c036b
MK
24#define GDB_GREGSET_T prgregset_t
25#define GDB_FPREGSET_T prfpregset_t
c906108c 26
386c036b 27/* Shared library support. */
c906108c 28
386c036b 29#include "solib.h"
0a415da9 30
386c036b 31/* Hardware wactchpoints. */
0a415da9 32
386c036b
MK
33/* Solaris 2.6 and above can do HW watchpoints. */
34#ifdef NEW_PROC_API
2f09097b
ND
35
36#define TARGET_HAS_HARDWARE_WATCHPOINTS
37
386c036b 38/* The man page for proc(4) on Solaris 2.6 and up says that the system
2f09097b 39 can support "thousands" of hardware watchpoints, but gives no
386c036b
MK
40 method for finding out how many; It doesn't say anything about the
41 allowed size for the watched area either. So we just tell GDB
42 'yes'. */
43#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1
2f09097b
ND
44
45/* When a hardware watchpoint fires off the PC will be left at the
386c036b
MK
46 instruction following the one which caused the watchpoint. It will
47 *NOT* be necessary for GDB to step over the watchpoint. */
7df1a324 48#define HAVE_CONTINUABLE_WATCHPOINT 1
2f09097b 49
39f77062 50extern int procfs_stopped_by_watchpoint (ptid_t);
2f09097b 51#define STOPPED_BY_WATCHPOINT(W) \
39f77062 52 procfs_stopped_by_watchpoint(inferior_ptid)
2f09097b 53
386c036b
MK
54/* Use these macros for watchpoint insertion/deletion. TYPE can be 0
55 (write watch), 1 (read watch), 2 (access watch (read/write). */
2f09097b 56
39f77062 57extern int procfs_set_watchpoint (ptid_t, CORE_ADDR, int, int, int);
2f09097b 58#define target_insert_watchpoint(ADDR, LEN, TYPE) \
39f77062 59 procfs_set_watchpoint (inferior_ptid, ADDR, LEN, TYPE, 1)
2f09097b 60#define target_remove_watchpoint(ADDR, LEN, TYPE) \
39f77062 61 procfs_set_watchpoint (inferior_ptid, ADDR, 0, 0, 0)
2f09097b
ND
62
63#endif /* NEW_PROC_API */
386c036b
MK
64
65#endif /* nm-sol2.h */
This page took 0.269786 seconds and 4 git commands to generate.