aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-24 01:34:52 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-24 02:06:22 +0300
commitc073ed8f702e98ec56ed05e0c02167e355e6ee31 (patch)
treef726a5830ed4f47724ac6c447571398ef5b12ea2 /include/pdb
parentadd Process class (diff)
downloadwinapi-debug-c073ed8f702e98ec56ed05e0c02167e355e6ee31.tar.gz
winapi-debug-c073ed8f702e98ec56ed05e0c02167e355e6ee31.zip
switch to Boost.Nowide everywhere
Diffstat (limited to 'include/pdb')
-rw-r--r--include/pdb/module.hpp4
-rw-r--r--include/pdb/symbol.hpp8
2 files changed, 5 insertions, 7 deletions
diff --git a/include/pdb/module.hpp b/include/pdb/module.hpp
index 1a5b227..81312b9 100644
--- a/include/pdb/module.hpp
+++ b/include/pdb/module.hpp
@@ -16,7 +16,7 @@ namespace pdb {
class ModuleInfo {
public:
- typedef IMAGEHLP_MODULE64 Impl;
+ typedef IMAGEHLP_MODULEW64 Impl;
ModuleInfo();
explicit ModuleInfo(const Impl& impl);
@@ -26,7 +26,7 @@ public:
Address get_offline_base() const { return impl.BaseOfImage; }
- std::string get_name() const { return impl.ModuleName; }
+ std::string get_name() const;
private:
static Impl create_impl();
diff --git a/include/pdb/symbol.hpp b/include/pdb/symbol.hpp
index 25e997b..6a62e22 100644
--- a/include/pdb/symbol.hpp
+++ b/include/pdb/symbol.hpp
@@ -8,8 +8,6 @@
#include "address.hpp"
#include "module.hpp"
-#include <SafeInt.hpp>
-
#include <dbghelp.h>
#include <windows.h>
@@ -35,7 +33,7 @@ static_assert(static_cast<Tag>(SymTagFunction) == SYM_TAG_FUNCTION,
class SymbolInfo {
public:
- typedef SYMBOL_INFO Impl;
+ typedef SYMBOL_INFOW Impl;
SymbolInfo();
explicit SymbolInfo(const Impl& impl);
@@ -46,7 +44,7 @@ public:
Address get_displacement() const { return displacement; }
void set_displacement(Address new_value) { displacement = new_value; }
- std::string get_name() const { return {get_impl().Name, get_impl().NameLen}; }
+ std::string get_name() const;
Address get_offline_base() const { return get_impl().ModBase; }
Address get_offline_address() const { return get_impl().Address; }
@@ -85,7 +83,7 @@ private:
class LineInfo {
public:
- typedef IMAGEHLP_LINE64 Impl;
+ typedef IMAGEHLP_LINEW64 Impl;
explicit LineInfo(const Impl& impl);