Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- jit/trace-jit.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/jit/trace-jit.c b/jit/trace-jit.c index d2c8dc1..07dd84a 100644 --- a/jit/trace-jit.c +++ b/jit/trace-jit.c @@ -663,7 +663,8 @@ void trace_exception(struct compilation_unit *cu, struct jit_stack_frame *frame, struct vm_object *exception; struct vm_method *vmm; struct vm_class *vmc; - + struct vm_object *msg; + int dummy; vmm = cu->method; vmc = vmm->class; @@ -674,6 +675,12 @@ void trace_exception(struct compilation_unit *cu, struct jit_stack_frame *frame, trace_printf("trace exception: exception object %p (%s) thrown\n", exception, exception->class->name); + dummy = 0; + msg = field_get_object(exception, vm_java_lang_Throwable_detailMessage); + + trace_printf("\tmessage\t: "); + print_arg(J_REFERENCE, (unsigned long *) &msg, &dummy); + trace_printf("\tfrom\t: %p: %s.%s%s\n", native_ptr, vmc->name, vmm->name, vmm->type); trace_printf("\t\t ("); -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel