[kaffe] jthread.c:420: `sc' undeclared

Guilhem Lavaux guilhem@kaffe.org
Sat Aug 23 01:03:01 2003


This is a multi-part message in MIME format.
--------------020701090606000906040301
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi Greg,

Could you try the attached patch file ? This problem is already known 
and we need to rewrite
this part of profiling. However for the moment it is not done. :(

Cheers,
Guilhem.

--------------020701090606000906040301
Content-Type: text/plain;
 name="openbsd_diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="openbsd_diff"

Index: config/i386/openbsd2/md.h
===================================================================
RCS file: /cvs/kaffe/kaffe/config/i386/openbsd2/md.h,v
retrieving revision 1.2
diff -u -r1.2 md.h
--- config/i386/openbsd2/md.h	1 Apr 1998 04:18:48 -0000	1.2
+++ config/i386/openbsd2/md.h	23 Aug 2003 08:00:39 -0000
@@ -21,6 +21,12 @@
 #undef SP_OFFSET
 #define SP_OFFSET 2
 
+/* Define signal context macros for xprofiling */
+#define SIGNAL_ARGS(sig, sc) int sig, int __code, struct sigcontext *sc
+#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp
+#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
+#define SIGNAL_PC(scp) (scp)->sc_pc
+
 #if defined(TRANSLATOR)
 #include "jit-md.h"
 #endif

--------------020701090606000906040301--