From 0cb64db44cfb8dfac57b224a17d6bc95ddb9f67c Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Thu, 23 Dec 2010 22:56:26 +0000
Subject: [PATCH] Add implementation of SC_EFLAGS for Solaris/x86, but disable
 for now because it makes breakpoints not work for some reason.

---
 lisp/x86-lispregs.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lisp/x86-lispregs.h b/lisp/x86-lispregs.h
index 863740924..b8043bd58 100644
--- a/lisp/x86-lispregs.h
+++ b/lisp/x86-lispregs.h
@@ -1,5 +1,5 @@
 /* x86-lispregs.h -*- Mode: C; -*-
- * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/x86-lispregs.h,v 1.14 2010/12/23 22:23:48 rtoy Exp $
+ * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/x86-lispregs.h,v 1.15 2010/12/23 22:56:26 rtoy Exp $
  */
 
 #ifndef _X86_LISPREGS_H_
@@ -60,6 +60,14 @@
 #define SC_EFLAGS(sc) ((sc)->uc_mcontext.gregs[REG_EFL])
 #elif defined(__NetBSD__)
 #define SC_EFLAGS(sc) ((sc)->uc_mcontext.__gregs[_REG_EFL])
+#elif defined(SOLARIS)
+/*
+ * Solaris/x86 has access the the eflags value, but this doesn't
+ * currently work.  Some more work needs to be done in x86-arch.c to
+ * make this work.  But the default code there works fine on
+ * Solaris/x86.
+ */
+/* #define SC_EFLAGS(sc) ((sc)->uc_mcontext.gregs[EFL])*/
 #endif
 
 #endif /* _X86_LISPREGS_H_ */
-- 
GitLab