changeset 1003:a348ff2a45d1

2008-08-08 Gary Benson <gbenson@redhat.com> * patches/icedtea-zero.patch: Include the calling thread's stack in crash dumps.
author Gary Benson <gbenson@redhat.com>
date Fri, 08 Aug 2008 12:13:41 -0400
parents d7f54e3a7a80
children df71bbb2f1ad
files ChangeLog patches/icedtea-zero.patch
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Aug 08 12:11:15 2008 -0400
+++ b/ChangeLog	Fri Aug 08 12:13:41 2008 -0400
@@ -1,3 +1,8 @@
+2008-08-08  Gary Benson  <gbenson@redhat.com>
+
+	* patches/icedtea-zero.patch: Include the calling thread's
+	stack in crash dumps.
+
 2008-08-08  Gary Benson  <gbenson@redhat.com>
 
 	* patches/icedtea-signed-types.patch: Signedness fix.
--- a/patches/icedtea-zero.patch	Fri Aug 08 12:11:15 2008 -0400
+++ b/patches/icedtea-zero.patch	Fri Aug 08 12:13:41 2008 -0400
@@ -196,3 +196,18 @@
       }
  
    STEP(140, "(printing VM operation)" )
+@@ -472,6 +484,14 @@ void VMError::report(outputStream* st) {
+           op->print_on_error(st);
+           st->cr();
+           st->cr();
++#ifdef ZERO
++          if (op->calling_thread()->is_Java_thread()) {
++            st->print_cr("Calling thread's Java stack:");
++            ZeroStackPrinter(st, buf, sizeof(buf)).print(
++              (JavaThread *) op->calling_thread());
++            st->cr();
++          }
++#endif // ZERO
+         }
+      }
+