diff options
Diffstat (limited to 'src/google_breakpad')
-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 |