*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / sparc64-tdep.h
index 4a150d9970e3ab16f15366a6e000a3862e86937d..a355e480c4a80790c699f560be494b2066a01da3 100644 (file)
@@ -1,12 +1,12 @@
 /* Target-dependent code for UltraSPARC.
 
-   Copyright 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2003-2004, 2006-2012 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #ifndef SPARC64_TDEP_H
 #define SPARC64_TDEP_H 1
 
+struct frame_info;
+struct gdbarch;
+struct regcache;
+struct sparc_gregset;
+struct trad_frame_saved_reg;
+
 #include "sparc-tdep.h"
 
 /* The stack pointer is offset from the stack frame by a BIAS of 2047
@@ -78,6 +82,18 @@ enum sparc64_regnum
   = SPARC64_Q0_REGNUM + 15
 };
 
+/* Processor state bits.  */
+#define SPARC64_PSTATE_AG      0x001
+#define SPARC64_PSTATE_IE      0x002
+#define SPARC64_PSTATE_PRIV    0x004
+#define SPARC64_PSTATE_AM      0x008
+#define SPARC64_PSTATE_PEF     0x010
+#define SPARC64_PSTATE_RED     0x020
+#define SPARC64_PSTATE_TLE     0x100
+#define SPARC64_PSTATE_CLE     0x200
+#define SPARC64_PSTATE_PID0    0x400
+#define SPARC64_PSTATE_PID1    0x800
+
 extern void sparc64_init_abi (struct gdbarch_info info,
                              struct gdbarch *gdbarch);
 
@@ -105,9 +121,13 @@ extern void sparc64_sol2_init_abi (struct gdbarch_info info,
 /* Register offsets for FreeBSD/sparc64.  */
 extern const struct sparc_gregset sparc64fbsd_gregset;
 
-/* Variables exported from sparc64nbsd-tdep.c.  */
+/* Functions and variables exported from sparc64nbsd-tdep.c.  */
 
 /* Register offsets for NetBSD/sparc64.  */
 extern const struct sparc_gregset sparc64nbsd_gregset;
 
+extern struct trad_frame_saved_reg *
+  sparc64nbsd_sigcontext_saved_regs (CORE_ADDR sigcontext_addr,
+                                    struct frame_info *next_frame);
+
 #endif /* sparc64-tdep.h */
This page took 0.025428 seconds and 4 git commands to generate.