[kaffe] CVS kaffe (guilhem): Fixlet for stack trace

Kaffe CVS cvs-commits at kaffe.org
Sat Jul 8 08:39:58 PDT 2006


PatchSet 7319 
Date: 2006/07/08 15:02:38
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixlet for stack trace

2006-07-08  Diego Pettenò  <flameeyes at gentoo.org>

	* kaffe/kaffevm/stackTrace.c
	(printStackTrace): Fix for inconsistent exception list.

Members: 
	ChangeLog:1.4822->1.4823 
	kaffe/kaffevm/stackTrace.c:1.52->1.53 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4822 kaffe/ChangeLog:1.4823
--- kaffe/ChangeLog:1.4822	Sat Jul  8 14:43:32 2006
+++ kaffe/ChangeLog	Sat Jul  8 15:02:38 2006
@@ -1,3 +1,8 @@
+2006-07-08  Diego Pettenò  <flameeyes at gentoo.org>
+
+	* kaffe/kaffevm/stackTrace.c
+	(printStackTrace): Fix for inconsistent exception list.
+	
 2006-07-08  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* configure.ac,
Index: kaffe/kaffe/kaffevm/stackTrace.c
diff -u kaffe/kaffe/kaffevm/stackTrace.c:1.52 kaffe/kaffe/kaffevm/stackTrace.c:1.53
--- kaffe/kaffe/kaffevm/stackTrace.c:1.52	Sun Feb 12 14:31:57 2006
+++ kaffe/kaffe/kaffevm/stackTrace.c	Sat Jul  8 15:02:42 2006
@@ -307,7 +307,7 @@
 	    }
 
 	    nextCause = unhand(o)->cause;
-	    if (nextCause != o)
+	    if (nextCause != o && nextCause != NULL)
 	      {
 		const char *className = CLASS_CNAME(OBJECT_CLASS((struct Hjava_lang_Object*)nextCause));
 		buf = checkPtr(KMALLOC(strlen(className) + 64));
@@ -351,7 +351,7 @@
 
 		KFREE(buf);
 	      }
-	  } while (nextCause != o);
+	  } while (nextCause != o && nextCause != NULL);
 	if (p != NULL || !nullOK) {
 	  do_execute_java_method(NULL, p, "flush", "()V", NULL, 0);
 	}




More information about the kaffe mailing list