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-ppc64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/stack-ppc64.c') diff --git a/runtime/stack-ppc64.c b/runtime/stack-ppc64.c index 87c528fd..4d4e49bb 100644 --- a/runtime/stack-ppc64.c +++ b/runtime/stack-ppc64.c @@ -57,5 +57,5 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels) } sp = newsp; - } while (str->len < STP_STRING_SIZE); + } while (count++ < MAXBACKTRACE); } -- cgit