summaryrefslogtreecommitdiff
path: root/gdb/sparc64-tdep.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-12-31 01:28:07 +0000
committerMark Kettenis <kettenis@gnu.org>2006-12-31 01:28:07 +0000
commit6df5070e3fb226764cd0da485b5f596797b87936 (patch)
treed7e4114d33ded3254e24032ef401ce4428da53dc /gdb/sparc64-tdep.h
parentf9225e75c0c9a058b39772f59cdb62ed659e9472 (diff)
downloadbinutils-gdb-6df5070e3fb226764cd0da485b5f596797b87936.tar.gz
* sparc64-tdep.h (SPARC64_PSTATE_AG, SPARC64_PSTATE_IE)
(SPARC64_PSTATE_PRIV, SPARC64_PSTATE_AM, SPARC64_PSTATE_PEF) (SPARC64_PSTATE_RED, SPARC64_PSTATE_TLE, SPARC64_PSTATE_CLE) (SPARC64_PSTATE_PID0, SPARC64_PSTATE_PID1): New defines. * sparc64nbsd-nat.c: Include "gdbcore.h". (sparc64nbsd_supply_pcb): Get %pc from stack if necessary. Supply processor state register. * sparc64obsd-tdep.c (sparc64obsd_trapframe_cache) (sparc64obsd_trapframe_this_id) (sparc64obsd_trapframe_prev_register) (sparc64obsd_trapframe_sniffer): New functions. (sparc64obsd_trapframe_unwind): New variable. (sparc64obsd_init_abi): Append trapframe unwinder. * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
Diffstat (limited to 'gdb/sparc64-tdep.h')
-rw-r--r--gdb/sparc64-tdep.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/sparc64-tdep.h b/gdb/sparc64-tdep.h
index 776964dd539..452d5515778 100644
--- a/gdb/sparc64-tdep.h
+++ b/gdb/sparc64-tdep.h
@@ -1,6 +1,6 @@
/* Target-dependent code for UltraSPARC.
- Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
This file is part of GDB.
@@ -84,6 +84,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);