aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/name2addr.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-29 01:24:29 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-29 01:27:53 +0300
commite162f2a21632e3f7b1c7ab9dd7b530beb1f2d4a8 (patch)
tree65199bce3779ff1800821c6b1c6bc0bc4592e66c /utils/name2addr.cpp
parentnamespace pdb -> namespace winapi (diff)
downloadwinapi-debug-e162f2a21632e3f7b1c7ab9dd7b530beb1f2d4a8.tar.gz
winapi-debug-e162f2a21632e3f7b1c7ab9dd7b530beb1f2d4a8.zip
rename class Repo to PostMortem
Diffstat (limited to 'utils/name2addr.cpp')
-rw-r--r--utils/name2addr.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/name2addr.cpp b/utils/name2addr.cpp
index db07c3a..c113a9a 100644
--- a/utils/name2addr.cpp
+++ b/utils/name2addr.cpp
@@ -42,9 +42,9 @@ void dump_error(const std::exception& e) {
std::cerr << "error: " << e.what() << '\n';
}
-void resolve_symbol(const winapi::Repo& repo, const std::string& name) {
+void resolve_symbol(const winapi::PostMortem& analysis, const std::string& name) {
try {
- const auto address = repo.resolve_symbol(name).get_online_address();
+ const auto address = analysis.resolve_symbol(name).get_online_address();
std::cout << winapi::format_address(address) << '\n';
} catch (const std::exception& e) {
dump_error(e);
@@ -70,13 +70,13 @@ int main(int argc, char* argv[]) {
return 0;
}
- winapi::Repo repo;
+ winapi::PostMortem analysis;
for (const auto& pdb : settings.pdbs)
- repo.add_pdb(pdb.online_base, pdb.path);
+ analysis.add_pdb(pdb.online_base, pdb.path);
for (const auto& name : settings.names)
- resolve_symbol(repo, name);
+ resolve_symbol(analysis, name);
} catch (const std::exception& e) {
dump_error(e);
return 1;