diff options
author | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-12-04 19:30:31 +0000 |
---|---|---|
committer | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-12-04 19:30:31 +0000 |
commit | 0a636257d433df77242d8809efb62c216d60723a (patch) | |
tree | 2f02e9360e3c340b1fc261bc52537da7ea7666c4 /src/google_breakpad/processor | |
parent | Add assertion on initialization sequence. (diff) | |
download | breakpad-0a636257d433df77242d8809efb62c216d60723a.tar.xz |
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
Diffstat (limited to 'src/google_breakpad/processor')
-rw-r--r-- | src/google_breakpad/processor/stackwalker.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<typename InstructionType> 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 |