mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-25 16:54:43 +01:00
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:
parent
cce3492afc
commit
0170bea32f
9 changed files with 16 additions and 43 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue