aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/sparc/tm-sun4sol2.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/config/sparc/tm-sun4sol2.h')
-rw-r--r--gdb/config/sparc/tm-sun4sol2.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/config/sparc/tm-sun4sol2.h b/gdb/config/sparc/tm-sun4sol2.h
index dcfe792..7bab6e6 100644
--- a/gdb/config/sparc/tm-sun4sol2.h
+++ b/gdb/config/sparc/tm-sun4sol2.h
@@ -1,5 +1,6 @@
/* Macro definitions for GDB for a Sun 4 running Solaris 2
- Copyright 1989, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+ Copyright 1989, 1992, 1993, 1994, 1995, 1997, 1998
+ Free Software Foundation, Inc.
This file is part of GDB.
@@ -66,6 +67,7 @@ get_longjmp_target PARAMS ((CORE_ADDR *));
extern char *sunpro_static_transform_name PARAMS ((char *));
#define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
+#define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '$')
#define FAULTED_USE_SIGINFO
@@ -76,6 +78,9 @@ extern char *sunpro_static_transform_name PARAMS ((char *));
#define PIDGET(pid) ((pid) & 0xffff)
#define TIDGET(pid) (((pid) >> 16) & 0xffff)
+/* Macro to extract carry from given regset. */
+#define PROCFS_GET_CARRY(regset) ((regset)[R_PSR] & PS_FLAG_CARRY)
+
#ifdef HAVE_THREAD_DB_LIB
extern char *solaris_pid_to_str PARAMS ((int pid));