From 7d678473f851dadc2f5a4f6fe1a0bc7635750585 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 7 Feb 2007 15:54:10 +0000 Subject: 2007-02-07 Martin Hunt * stack-ppc64.c (__stp_stack_print): Remove an old reference to the string length and instead limit backtraces to MAXBACKTRACE. * stack.c: Define MAXBACKTRACE --- runtime/stack.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/stack.c') diff --git a/runtime/stack.c b/runtime/stack.c index dfc7f0d3..07315a90 100644 --- a/runtime/stack.c +++ b/runtime/stack.c @@ -25,6 +25,8 @@ #include "regs.h" static int _stp_kta(unsigned long addr); +#define MAXBACKTRACE 20 + #if defined (__x86_64__) #include "stack-x86_64.c" #elif defined (__ia64__) -- cgit