Signed-off-by: Tomek Grabiec <[email protected]>
---
arch/x86/backtrace.c | 4 ++++
vm/stack-trace.c | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/x86/backtrace.c b/arch/x86/backtrace.c
index aaa0615..322fd52 100644
--- a/arch/x86/backtrace.c
+++ b/arch/x86/backtrace.c
@@ -224,6 +224,8 @@ void print_backtrace_and_die(int sig, siginfo_t *info, void
*secret)
ucontext_t *uc = secret;
unsigned long eip, ebp, addr;
+ trace_begin();
+
eip = uc->uc_mcontext.gregs[IP_REG];
ebp = uc->uc_mcontext.gregs[BP_REG];
addr = (unsigned long) info->si_addr;
@@ -241,5 +243,7 @@ void print_backtrace_and_die(int sig, siginfo_t *info, void
*secret)
print_trace_from(eip, (void *) ebp);
+ trace_end();
+
exit(1);
}
diff --git a/vm/stack-trace.c b/vm/stack-trace.c
index 95a8bf6..0472b67 100644
--- a/vm/stack-trace.c
+++ b/vm/stack-trace.c
@@ -748,7 +748,9 @@ void print_trace(void)
/* Skip init_stack_trace_elem_current() */
stack_trace_elem_next(&elem);
+ trace_begin();
show_mixed_stack_trace(&elem);
+ trace_end();
}
void print_trace_from(unsigned long eip, void *frame)
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel