summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2024-07-05 13:15:48 +0800
committerXusheng <xusheng@vector35.com>2024-07-09 10:24:45 +0800
commitc85a0a26c12fcef22ee0df37a54716d139c589cf (patch)
tree43017bb51600fd87ea5b49bd9ff98096ba1b35e9 /function.cpp
parent1bab71bba6b2777ebe84313dcf22ec7d4edcd1d7 (diff)
Expose Function::UsesIncomingGlobalPointer through the API. Fix https://github.com/Vector35/binaryninja-api/issues/5686
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp
index 2838f079..8497ccec 100644
--- a/function.cpp
+++ b/function.cpp
@@ -2399,6 +2399,12 @@ Confidence<RegisterValue> Function::GetGlobalPointerValue() const
}
+bool Function::UsesIncomingGlobalPointer() const
+{
+ return BNFunctionUsesIncomingGlobalPointer(m_object);
+}
+
+
Confidence<RegisterValue> Function::GetRegisterValueAtExit(uint32_t reg) const
{
BNRegisterValueWithConfidence value = BNGetFunctionRegisterValueAtExit(m_object, reg);