From 3104042adab833e73a71738f57070ab881ade615 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Wed, 28 Sep 2022 18:21:13 -0400 Subject: Rename and move `Analysis/Database Merge Tool` to `File/Merge Databases`; Add API bindings for `BinaryView::GetDebugInfo()`, `BinaryView::ApplyDebugInfo()`, and `BinaryView::SetDebugInfo()`; Remove `analysis.experimental.parseDebugInfo` (in favor of `loader.debugInfoInternal` and `loader.debugInfoExternal`) --- binaryview.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index dba92d7c..b8dd7c1a 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -2560,6 +2560,27 @@ void BinaryView::DefineImportedFunction(Ref importAddressSym, Ref BinaryView::GetDebugInfo() +{ + BNDebugInfo* result = BNGetDebugInfo(m_object); + if (!result) + return nullptr; + return new DebugInfo(result); +} + + +void BinaryView::ApplyDebugInfo(Ref newDebugInfo) +{ + BNApplyDebugInfo(m_object, newDebugInfo->GetObject()); +} + + +void BinaryView::SetDebugInfo(Ref newDebugInfo) +{ + BNSetDebugInfo(m_object, newDebugInfo->GetObject()); +} + + void BinaryView::BeginBulkModifySymbols() { BNBeginBulkModifySymbols(m_object); -- cgit v1.3.1