summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-02-03 17:13:47 -0500
committerRusty Wagner <rusty@vector35.com>2016-02-03 17:13:47 -0500
commitce672eb54474d0a9f940e529d94599c5eef18dc7 (patch)
tree8b9c7eec09ae50f39d88f99ce359b0a11480e54f /binaryview.cpp
parent290df8eef95d0d7f2f0e99c91b104b4b02f2bd22 (diff)
Don't overwrite existing symbols when creating imported functions
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index cbb70166..89b85250 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -956,6 +956,12 @@ void BinaryView::UndefineUserSymbol(Symbol* sym)
}
+void BinaryView::DefineImportedFunction(Symbol* importAddressSym, Function* func)
+{
+ BNDefineImportedFunction(m_object, importAddressSym->GetObject(), func->GetObject());
+}
+
+
bool BinaryView::IsNeverBranchPatchAvailable(Architecture* arch, uint64_t addr)
{
return BNIsNeverBranchPatchAvailable(m_object, arch->GetObject(), addr);