Follow-up to #26: get rid of supplier_data, it's not really needed since

the caller can implement their own supplier object. r=mmentovai.


git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@27 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
bryner
2006-09-20 00:00:12 +00:00
parent cce3492afc
commit 0170bea32f
9 changed files with 16 additions and 43 deletions

View File

@@ -34,11 +34,10 @@ using std::auto_ptr;
Stackwalker::Stackwalker(MemoryRegion* memory, MinidumpModuleList* modules,
SymbolSupplier* supplier, void* supplier_data)
SymbolSupplier* supplier)
: memory_(memory),
modules_(modules),
supplier_(supplier),
supplier_data_(supplier_data) {
supplier_(supplier) {
}
@@ -65,7 +64,7 @@ void Stackwalker::Walk(StackFrames *frames) {
frame->module_base = module->base_address();
if (modules_ && supplier_) {
string symbol_file =
supplier_->GetSymbolFile(module, supplier_data_);
supplier_->GetSymbolFile(module);
if (!symbol_file.empty()) {
resolver.LoadModule(*(module->GetName()), symbol_file);
resolver.FillSourceLineInfo(frame.get());