summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorStephen Tong <v35stong@users.noreply.github.com>2019-05-23 16:51:03 -0400
committerStephen Tong <v35stong@users.noreply.github.com>2019-05-28 13:17:54 -0400
commit46ea950b5d147e14348806ab8ce6b0265efee06f (patch)
tree6246e4753beda08f4d3cb5abb950a68ac37de71c /python
parent131952a79f4efebd71117376310f2a8726e118b0 (diff)
WIP: Support adding user-defined xrefs
Diffstat (limited to 'python')
-rw-r--r--python/function.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py
index 9d70d5be..1aea500d 100644
--- a/python/function.py
+++ b/python/function.py
@@ -1293,6 +1293,9 @@ class Function(object):
"""
core.BNSetCommentForAddress(self.handle, addr, comment)
+ def set_user_xref(self, addr, target):
+ core.BNSetUserXref(self.handle, addr, target)
+
def get_low_level_il_at(self, addr, arch=None):
"""
``get_low_level_il_at`` gets the LowLevelILInstruction corresponding to the given virtual address