summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2007-02-07 15:54:10 +0000
committerhunt <hunt>2007-02-07 15:54:10 +0000
commit7d678473f851dadc2f5a4f6fe1a0bc7635750585 (patch)
treeff471b39034100b18948c7dcd43eb0a3646bc320
parentb8772cce090adb3d27cdd8b49d236662b526424e (diff)
downloadsystemtap-steved-7d678473f851dadc2f5a4f6fe1a0bc7635750585.tar.gz
systemtap-steved-7d678473f851dadc2f5a4f6fe1a0bc7635750585.tar.xz
systemtap-steved-7d678473f851dadc2f5a4f6fe1a0bc7635750585.zip
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
-rw-r--r--runtime/ChangeLog7
-rw-r--r--runtime/stack-ppc64.c2
-rw-r--r--runtime/stack.c2
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__)