From 0a636257d433df77242d8809efb62c216d60723a Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Tue, 4 Dec 2012 19:30:31 +0000 Subject: Allow StackwalkerARM to scan much farther to find the caller of the context frame R=jimb at https://breakpad.appspot.com/501002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1086 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/google_breakpad/processor/stackwalker.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/google_breakpad') diff --git a/src/google_breakpad/processor/stackwalker.h b/src/google_breakpad/processor/stackwalker.h index 2979fef8..401c2f62 100644 --- a/src/google_breakpad/processor/stackwalker.h +++ b/src/google_breakpad/processor/stackwalker.h @@ -106,11 +106,14 @@ class Stackwalker { // Returns false otherwise. bool InstructionAddressSeemsValid(u_int64_t address); + // The default number of words to search through on the stack + // for a return address. + static const int kRASearchWords; + template bool ScanForReturnAddress(InstructionType location_start, InstructionType* location_found, InstructionType* ip_found) { - const int kRASearchWords = 30; return ScanForReturnAddress(location_start, location_found, ip_found, kRASearchWords); } @@ -185,7 +188,6 @@ class Stackwalker { static u_int32_t max_frames_; }; - } // namespace google_breakpad -- cgit v1.2.1