From 8939309b1a71733af3a92ba2dd662d5d91a19732 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Fri, 12 Jan 2024 16:57:24 +0800 Subject: [PATCH] Allow dbgeng to debug the taret when the opened view is a raw view --- core/adapters/dbgengadapter.cpp | 2 +- core/adapters/dbgengttdadapter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/adapters/dbgengadapter.cpp b/core/adapters/dbgengadapter.cpp index 9ea3c74..705bed7 100644 --- a/core/adapters/dbgengadapter.cpp +++ b/core/adapters/dbgengadapter.cpp @@ -1574,7 +1574,7 @@ DebugAdapter* LocalDbgEngAdapterType::Create(BinaryNinja::BinaryView* data) bool LocalDbgEngAdapterType::IsValidForData(BinaryNinja::BinaryView* data) { - return data->GetTypeName() == "PE"; + return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw"; } diff --git a/core/adapters/dbgengttdadapter.cpp b/core/adapters/dbgengttdadapter.cpp index 99b2b60..cb19657 100644 --- a/core/adapters/dbgengttdadapter.cpp +++ b/core/adapters/dbgengttdadapter.cpp @@ -260,7 +260,7 @@ DebugAdapter* DbgEngTTDAdapterType::Create(BinaryNinja::BinaryView* data) bool DbgEngTTDAdapterType::IsValidForData(BinaryNinja::BinaryView* data) { - return data->GetTypeName() == "PE"; + return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw"; }