aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/executioner.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bruiser/executioner.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bruiser/executioner.h b/bruiser/executioner.h
index 5c04be1..4793915 100644
--- a/bruiser/executioner.h
+++ b/bruiser/executioner.h
@@ -235,6 +235,12 @@ class Executioner {
}
return std::make_pair(nullptr, "");
}
+ std::pair<void*, std::string> getvptrbyname(const char* name) {
+ for (auto &iter : vptrs) {
+ if (std::strcmp(name, iter.second.c_str()) == 0) return iter;
+ }
+ return std::make_pair(nullptr, "");
+ }
private:
std::vector<std::pair<void*, size_t>> obj_mem_ptrs;
@@ -328,6 +334,7 @@ class XGlobals {
XGlobals() {}
~XGlobals() {}
private:
+ std::list<std::pair<void*, size_t>> globals;
};
/**********************************************************************************************************************/
/**********************************************************************************************************************/