diff --git a/core/processview.cpp b/core/processview.cpp index ff1856ab..a120989e 100644 --- a/core/processview.cpp +++ b/core/processview.cpp @@ -102,7 +102,7 @@ uint64_t DebugProcessView::PerformGetLength() const DebugProcessViewType::DebugProcessViewType() : BinaryViewType("Debugger", "Debugger") {} -BinaryView* DebugProcessViewType::Create(BinaryView* data) +Ref DebugProcessViewType::Create(BinaryView* data) { try { @@ -118,7 +118,7 @@ BinaryView* DebugProcessViewType::Create(BinaryView* data) } -BinaryView* DebugProcessViewType::Parse(BinaryView* data) +Ref DebugProcessViewType::Parse(BinaryView* data) { try { diff --git a/core/processview.h b/core/processview.h index 7040c8de..da70db12 100644 --- a/core/processview.h +++ b/core/processview.h @@ -67,8 +67,8 @@ namespace BinaryNinjaDebugger { public: DebugProcessViewType(); - virtual BinaryView* Create(BinaryView* data) override; - virtual BinaryView* Parse(BinaryView* data) override; + virtual Ref Create(BinaryView* data) override; + virtual Ref Parse(BinaryView* data) override; virtual bool IsTypeValidForData(BinaryView* data) override { return true; } virtual Ref GetLoadSettingsForData(BinaryView* data) override { return nullptr; } // Here we abuse (smartly use) the IsDeprecated() API to achieve our goal of stopping BN to construct