[kaffe] CVS kaffe (guilhem): Fix for NetBSD.

Kaffe CVS cvs-commits at kaffe.org
Mon Jun 14 10:49:08 PDT 2004


PatchSet 4843 
Date: 2004/06/14 17:44:00
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fix for NetBSD.

        * kaffe/kaffevm/systems/unix-jthreads/signal.c
        (detectStackBoundaries): Register also SIGBUS if available.

Members: 
	ChangeLog:1.2410->1.2411 
	kaffe/kaffevm/systems/unix-jthreads/signal.c:1.19->1.20 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2410 kaffe/ChangeLog:1.2411
--- kaffe/ChangeLog:1.2410	Mon Jun 14 11:12:42 2004
+++ kaffe/ChangeLog	Mon Jun 14 17:44:00 2004
@@ -1,3 +1,8 @@
+2004-06-14  Guilhem Lavaux <guilhem at kaffe.org>
+
+	* kaffe/kaffevm/systems/unix-jthreads/signal.c
+	(detectStackBoundaries): Register also SIGBUS if available.
+
 2004-06-14  Dalibor Topic  <robilad at kaffe.org>,
 
 	* kaffe/kaffe/Makefile.am:
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.19 kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.20
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.19	Sun May 30 20:37:09 2004
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c	Mon Jun 14 17:44:02 2004
@@ -464,7 +464,12 @@
 
 	setupSigAltStack();
 
-	registerSignalHandler(SIGSEGV, stackOverflowDetector, false);
+#if defined(SIGSEGV)
+	registerSyncSignalHandler(SIGSEGV, stackOverflowDetector);
+#endif
+#if defined(SIGBUS)
+	registerSyncSignalHandler(SIGBUS, stackOverflowDetector);
+#endif
 	
 	if (JTHREAD_SETJMP(outOfLoop) == 0)
 	{




More information about the kaffe mailing list