From 0170bea32f3b6745a924c04899d0dae563e078f6 Mon Sep 17 00:00:00 2001 From: bryner Date: Wed, 20 Sep 2006 00:00:12 +0000 Subject: 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 --- src/processor/stackwalker.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/processor/stackwalker.cc') diff --git a/src/processor/stackwalker.cc b/src/processor/stackwalker.cc index 62386b83..69301515 100644 --- a/src/processor/stackwalker.cc +++ b/src/processor/stackwalker.cc @@ -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()); -- cgit v1.2.1