Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <git@davidebeatrici.dev>2022-05-31 09:25:12 +0300
committerDavide Beatrici <git@davidebeatrici.dev>2022-06-04 23:56:26 +0300
commit444094d2de28dee98fbeb033810ad4c5d668c140 (patch)
treedaec49c087db9ad7ae23bac75eaab98a30238b8c /plugins
parent448fbe3b530e56e0da51d97a9a318f03c9ccb5f3 (diff)
FEAT(positional-audio): Add ProcessBase::peekRIP(), for x64 processes
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ProcessBase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ProcessBase.h b/plugins/ProcessBase.h
index 60156055b..dffb40bf5 100644
--- a/plugins/ProcessBase.h
+++ b/plugins/ProcessBase.h
@@ -45,6 +45,9 @@ public:
procptr_t peekPtr(const procptr_t address) const;
+ /// Resolves x64's RIP (Relative Instruction Pointer).
+ procptr_t peekRIP(const procptr_t address) const { return address + peek< uint32_t >(address) + 4; }
+
/// Reads the specified amount of data at the specified address and returns it as std::string.
/// An empty std::string is returned in case of error.
///