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ò  <[EMAIL PROTECTED]>

        * 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ò  <[EMAIL PROTECTED]>
+
+       * kaffe/kaffevm/stackTrace.c
+       (printStackTrace): Fix for inconsistent exception list.
+       
 2006-07-08  Guilhem Lavaux  <[EMAIL PROTECTED]>
 
        * 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);
        }

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to