diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-29 01:33:39 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-29 01:34:04 +0300 |
commit | bc78e3308f8bf74a8935f9ef8fd28825d6b48c2f (patch) | |
tree | e496012c405316287ef67ebcfecf5f40d4a9a656 /src/call_stack.cpp | |
parent | rename class Repo to PostMortem (diff) | |
download | winapi-debug-bc78e3308f8bf74a8935f9ef8fd28825d6b48c2f.tar.gz winapi-debug-bc78e3308f8bf74a8935f9ef8fd28825d6b48c2f.zip |
move _address functions to winapi::address
Diffstat (limited to 'src/call_stack.cpp')
-rw-r--r-- | src/call_stack.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/call_stack.cpp b/src/call_stack.cpp index 30abaad..4a13b3a 100644 --- a/src/call_stack.cpp +++ b/src/call_stack.cpp @@ -27,14 +27,14 @@ static std::string put_between_brackets(const T& x) { } std::string format_address_fallback(Address addr) { - return put_between_brackets(format_address(addr)); + return put_between_brackets(address::format(addr)); } std::string offset_from(const std::string& thing, Address offset) { if (offset == 0) return put_between_brackets(thing); else - return put_between_brackets(thing + "+" + format_address(offset)); + return put_between_brackets(thing + "+" + address::format(offset)); } std::string offset_from_module(const ModuleInfo& module, Address addr) { @@ -107,7 +107,7 @@ std::string CallStack::pretty_print_address(const DbgHelp& dbghelp, Address addr void CallStack::dump(std::ostream& os, const DbgHelp& dbghelp) const { for_each_address([&](Address addr) { - os << format_address(addr) << ' ' << pretty_print_address(dbghelp, addr) << '\n'; + os << address::format(addr) << ' ' << pretty_print_address(dbghelp, addr) << '\n'; return true; }); } |