diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-09-28 18:21:13 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-10-04 15:36:26 -0400 |
| commit | 3104042adab833e73a71738f57070ab881ade615 (patch) | |
| tree | 4e5280c162a3f681dab5be6c15dba749d5c30115 /binaryview.cpp | |
| parent | ed820d2ab81470b3e5ac543d75211e87ff3bc738 (diff) | |
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`)
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
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<Symbol> importAddressSym, Ref<Functi } +Ref<DebugInfo> BinaryView::GetDebugInfo() +{ + BNDebugInfo* result = BNGetDebugInfo(m_object); + if (!result) + return nullptr; + return new DebugInfo(result); +} + + +void BinaryView::ApplyDebugInfo(Ref<DebugInfo> newDebugInfo) +{ + BNApplyDebugInfo(m_object, newDebugInfo->GetObject()); +} + + +void BinaryView::SetDebugInfo(Ref<DebugInfo> newDebugInfo) +{ + BNSetDebugInfo(m_object, newDebugInfo->GetObject()); +} + + void BinaryView::BeginBulkModifySymbols() { BNBeginBulkModifySymbols(m_object); |
