summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
authorrollsafe <rollsafe@users.noreply.github.com>2019-05-30 17:27:08 -0400
committerrollsafe <rollsafe@users.noreply.github.com>2019-05-31 16:20:45 -0400
commit10b6e9ae50c35cd5582d2325bfa767ce8083220e (patch)
tree9c7ee5a20798df9854ac3e56b69a541c0fd05166 /binaryview.cpp
parent4452de9f22a8a9666f159a9fd5d66b67223ce2e5 (diff)
Support adding user-defined xrefs
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index e0948a1c..547d1fc7 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -1482,6 +1482,18 @@ vector<uint64_t> BinaryView::GetDataReferencesFrom(uint64_t addr, uint64_t len)
}
+void BinaryView::AddUserDataReference(uint64_t fromAddr, uint64_t toAddr)
+{
+ BNAddUserDataReference(m_object, fromAddr, toAddr);
+}
+
+
+void BinaryView::RemoveUserDataReference(uint64_t fromAddr, uint64_t toAddr)
+{
+ BNRemoveUserDataReference(m_object, fromAddr, toAddr);
+}
+
+
Ref<Symbol> BinaryView::GetSymbolByAddress(uint64_t addr, const NameSpace& nameSpace)
{
BNNameSpace ns = nameSpace.GetAPIObject();