diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/ChangeLog | 7 | ||||
-rw-r--r-- | runtime/stack-ppc64.c | 2 | ||||
-rw-r--r-- | runtime/stack.c | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index d56a64a7..f1ed003f 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,10 @@ +2007-02-07 Martin Hunt <hunt@redhat.com> + + * stack-ppc64.c (__stp_stack_print): Remove an old + reference to the string length and instead limit backtraces + to MAXBACKTRACE. + * stack.c: Define MAXBACKTRACE + 2007-02-06 Josh Stone <joshua.i.stone@intel.com> * loc2c-runtime.h (kread): Let it work with const types. 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); } 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__) |