diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-19 05:31:58 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-19 05:31:58 +0300 |
commit | a8d767a99e4c09975503e092ee4674962b27c3ce (patch) | |
tree | 0d341e027a980981e8d719133f785d1eb5dbd702 /include/pdb/address.hpp | |
parent | add displacement to symbols (diff) | |
download | winapi-debug-a8d767a99e4c09975503e092ee4674962b27c3ce.tar.gz winapi-debug-a8d767a99e4c09975503e092ee4674962b27c3ce.zip |
refactoring
Diffstat (limited to 'include/pdb/address.hpp')
-rw-r--r-- | include/pdb/address.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/pdb/address.hpp b/include/pdb/address.hpp index 53b25e8..33e0ac3 100644 --- a/include/pdb/address.hpp +++ b/include/pdb/address.hpp @@ -7,7 +7,17 @@ #include <Windows.h> +#include <sstream> +#include <string> + namespace pdb { typedef DWORD64 Address; + + inline std::string format_address(Address address) + { + std::ostringstream oss; + oss << std::hex << std::showbase << address; + return oss.str(); + } } |