Skip to content

Commit

Permalink
Support using various Windows-related debugger with mapped file. Fix V…
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Jul 30, 2024
1 parent 82b91c6 commit 1835ae9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/adapters/dbgengadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ DebugAdapter* LocalDbgEngAdapterType::Create(BinaryNinja::BinaryView* data)

bool LocalDbgEngAdapterType::IsValidForData(BinaryNinja::BinaryView* data)
{
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw";
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw" || data->GetTypeName() == "Mapped";
}


Expand Down
2 changes: 1 addition & 1 deletion core/adapters/dbgengttdadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ DebugAdapter* DbgEngTTDAdapterType::Create(BinaryNinja::BinaryView* data)

bool DbgEngTTDAdapterType::IsValidForData(BinaryNinja::BinaryView* data)
{
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw";
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw" || data->GetTypeName() == "Mapped";
}


Expand Down
2 changes: 1 addition & 1 deletion core/adapters/localwindowskerneladapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ DebugAdapter* LocalWindowsKernelAdapterType::Create(BinaryNinja::BinaryView* dat

bool LocalWindowsKernelAdapterType::IsValidForData(BinaryNinja::BinaryView* data)
{
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw";
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw" || data->GetTypeName() == "Mapped";
}


Expand Down
2 changes: 1 addition & 1 deletion core/adapters/windowsdumpfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ DebugAdapter* WindowsDumpFileAdapterType::Create(BinaryNinja::BinaryView* data)

bool WindowsDumpFileAdapterType::IsValidForData(BinaryNinja::BinaryView* data)
{
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw";
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw" || data->GetTypeName() == "Mapped";
}


Expand Down
2 changes: 1 addition & 1 deletion core/adapters/windowskerneladapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ DebugAdapter* WindowsKernelAdapterType::Create(BinaryNinja::BinaryView* data)

bool WindowsKernelAdapterType::IsValidForData(BinaryNinja::BinaryView* data)
{
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw";
return data->GetTypeName() == "PE" || data->GetTypeName() == "Raw" || data->GetTypeName() == "Mapped";
}


Expand Down

0 comments on commit 1835ae9

Please sign in to comment.