Add support for debugging Windows PE files on Linux via wine #820
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR documents the newly discovered capability to debug Windows PE executables on Linux using wine + winedbg + Binary Ninja's LLDB adapter.
Based on testing by @xusheng6, Windows PE files can be successfully debugged on Linux by using wine's built-in
winedbg
debugger as a bridge to Binary Ninja's LLDB adapter. This provides a practical solution for debugging Windows executables without requiring a Windows VM or dual-boot setup.Changes Made
Updated Compatibility Matrix
New Wine Debugging Guide
Created
docs/guide/wine-debugging.md
with complete documentation including:gdb-remote
process pluginTechnical Details
The solution works by:
winedbg --gdb
to expose a GDB remote protocol servergdb-remote
pluginPerformance: Comparable to GDB, slightly slower than native debugging but fully functional.
Compatibility: Works with both 32-bit and 64-bit Windows PE files that can run under wine.
This addresses a significant capability gap and enables cross-platform debugging scenarios that were previously difficult or impossible.
Fixes #525.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.