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
This commit is contained in:
ted.mielczarek@gmail.com 2012-12-04 19:30:31 +00:00
parent ac9324da7a
commit 0a636257d4
4 changed files with 70 additions and 3 deletions

View file

@ -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