diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 03:30:56 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 03:35:11 +0300 |
commit | eeac54304af4a06ab9e4e3ce944944a609c68a8a (patch) | |
tree | 1dc85b8464e41c47d7463c5d7fc281628f9995b1 /src/repo.cpp | |
parent | add test/ to test, for starters, enum_symbols (diff) | |
download | winapi-debug-eeac54304af4a06ab9e4e3ce944944a609c68a8a.tar.gz winapi-debug-eeac54304af4a06ab9e4e3ce944944a609c68a8a.zip |
refactoring
Diffstat (limited to 'src/repo.cpp')
-rw-r--r-- | src/repo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/repo.cpp b/src/repo.cpp index d7f2c74..6ef5252 100644 --- a/src/repo.cpp +++ b/src/repo.cpp @@ -119,8 +119,8 @@ void Repo::enum_symbols(Address offline_base, const OnSymbol& callback) const { } void Repo::enum_symbols(const Module& module, const OnSymbol& callback) const { - dbghelp.enum_symbols(module, - [&](const SymbolInfo& raw) { callback(symbol_from_buffer(module, raw)); }); + dbghelp.enum_symbols( + module, [&](const SymbolInfo& impl) { callback(symbol_from_buffer(module, impl)); }); } Symbol Repo::resolve_symbol(Address online) const { @@ -143,12 +143,12 @@ const Module& Repo::module_with_offline_base(Address base) const { return lookup_module(offline_bases, base); } -Symbol Repo::symbol_from_buffer(const SymbolInfo& raw) const { - return symbol_from_buffer(module_with_offline_base(raw.get_offline_base()), raw); +Symbol Repo::symbol_from_buffer(const SymbolInfo& impl) const { + return symbol_from_buffer(module_with_offline_base(impl.get_offline_base()), impl); } -Symbol Repo::symbol_from_buffer(const Module& module, const SymbolInfo& raw) { - return {module.translate_offline_address(raw.get_offline_address()), raw}; +Symbol Repo::symbol_from_buffer(const Module& module, const SymbolInfo& impl) { + return {module.translate_offline_address(impl.get_offline_address()), impl}; } Address Repo::address_online_to_offline(Address online) const { |