aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-29 01:11:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-29 01:11:44 +0300
commite2961032fd1896899f688cdcdf41f23ed71e3e82 (patch)
tree0ce11fa3137f027866e91bdc7cc71ff36fe3f6f8 /src
parentinclude/pdb/ -> include/winapi/debug/ (diff)
downloadwinapi-debug-e2961032fd1896899f688cdcdf41f23ed71e3e82.tar.gz
winapi-debug-e2961032fd1896899f688cdcdf41f23ed71e3e82.zip
namespace pdb -> namespace winapi
Diffstat (limited to 'src')
-rw-r--r--src/call_stack.cpp4
-rw-r--r--src/dbghelp.cpp8
-rw-r--r--src/module.cpp4
-rw-r--r--src/repo.cpp4
-rw-r--r--src/symbol.cpp4
5 files changed, 12 insertions, 12 deletions
diff --git a/src/call_stack.cpp b/src/call_stack.cpp
index f6ac0f9..30abaad 100644
--- a/src/call_stack.cpp
+++ b/src/call_stack.cpp
@@ -16,7 +16,7 @@
#include <string>
#include <system_error>
-namespace pdb {
+namespace winapi {
namespace {
template <typename T>
@@ -112,4 +112,4 @@ void CallStack::dump(std::ostream& os, const DbgHelp& dbghelp) const {
});
}
-} // namespace pdb
+} // namespace winapi
diff --git a/src/dbghelp.cpp b/src/dbghelp.cpp
index f645eb4..46905c5 100644
--- a/src/dbghelp.cpp
+++ b/src/dbghelp.cpp
@@ -18,7 +18,7 @@
#include <string>
#include <vector>
-namespace pdb {
+namespace winapi {
namespace {
void set_dbghelp_options() {
@@ -162,7 +162,7 @@ ModuleInfo DbgHelp::resolve_module(Address offline) const {
void DbgHelp::enum_symbols(const ModuleInfo& module,
const std::string& mask,
const OnSymbol& callback) const {
- pdb::enum_symbols(id, module.get_offline_base(), mask, callback);
+ winapi::enum_symbols(id, module.get_offline_base(), mask, callback);
}
void DbgHelp::enum_symbols(const ModuleInfo& module, const OnSymbol& callback) const {
@@ -170,7 +170,7 @@ void DbgHelp::enum_symbols(const ModuleInfo& module, const OnSymbol& callback) c
}
void DbgHelp::enum_symbols(const std::string& mask, const OnSymbol& callback) const {
- pdb::enum_symbols(id, 0, mask, callback);
+ winapi::enum_symbols(id, 0, mask, callback);
}
void DbgHelp::enum_symbols(const OnSymbol& callback) const {
@@ -210,4 +210,4 @@ LineInfo DbgHelp::resolve_line(Address offline) const {
return LineInfo{impl};
}
-} // namespace pdb
+} // namespace winapi
diff --git a/src/module.cpp b/src/module.cpp
index bb5a7a5..d676151 100644
--- a/src/module.cpp
+++ b/src/module.cpp
@@ -12,7 +12,7 @@
#include <stdexcept>
#include <string>
-namespace pdb {
+namespace winapi {
ModuleInfo::ModuleInfo() : ModuleInfo{create_impl()} {}
@@ -72,4 +72,4 @@ std::string Module::invalid_online_address(Address online) const {
return oss.str();
}
-} // namespace pdb
+} // namespace winapi
diff --git a/src/repo.cpp b/src/repo.cpp
index b186178..24d9e59 100644
--- a/src/repo.cpp
+++ b/src/repo.cpp
@@ -12,7 +12,7 @@
#include <string>
#include <utility>
-namespace pdb {
+namespace winapi {
namespace {
std::string pdb_already_loaded(Address online_base, const std::string& path) {
@@ -168,4 +168,4 @@ const Module& Repo::module_from_offline_address(Address offline) const {
return guess_module(offline_bases, offline);
}
-} // namespace pdb
+} // namespace winapi
diff --git a/src/symbol.cpp b/src/symbol.cpp
index 27e93b5..2f7638d 100644
--- a/src/symbol.cpp
+++ b/src/symbol.cpp
@@ -16,7 +16,7 @@
#include <string>
#include <type_traits>
-namespace pdb {
+namespace winapi {
namespace {
std::size_t calc_size(const SymbolInfo::Impl& impl) {
@@ -59,4 +59,4 @@ std::string SymbolInfo::get_name() const {
LineInfo::LineInfo(const Impl& impl)
: file_path{winapi::narrow(impl.FileName)}, line_number{cast_line_number(impl.LineNumber)} {}
-} // namespace pdb
+} // namespace winapi