Reduce calls to SymbolSupplier::GetSymbolFile() (#48).
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@40 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
8b1645d8cd
commit
181f307ffe
4 changed files with 16 additions and 5 deletions
|
@ -78,14 +78,13 @@ void Stackwalker::Walk(StackFrames *frames) {
|
|||
if (module) {
|
||||
frame->module_name = *(module->GetName());
|
||||
frame->module_base = module->base_address();
|
||||
if (modules_ && supplier_) {
|
||||
string symbol_file =
|
||||
supplier_->GetSymbolFile(module);
|
||||
if (!resolver.HasModule(frame->module_name) && supplier_) {
|
||||
string symbol_file = supplier_->GetSymbolFile(module);
|
||||
if (!symbol_file.empty()) {
|
||||
resolver.LoadModule(*(module->GetName()), symbol_file);
|
||||
resolver.FillSourceLineInfo(frame.get(), frame_info.get());
|
||||
resolver.LoadModule(frame->module_name, symbol_file);
|
||||
}
|
||||
}
|
||||
resolver.FillSourceLineInfo(frame.get(), frame_info.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue