Patches Proposed So Microsoft Debuggers Can Deal With GCC-Built MinGW Executables

Written by Michael Larabel in GNU on 21 March 2021 at 06:13 AM EDT. 24 Comments
GNU
Patches have been proposed for the GCC compiler to ultimately allow MinGW Windows executables to be debugged with Microsoft's debuggers.

The set of two dozen patches is for allowing the GNU Compiler Collection to emit debugging information in the PE-specific CodeView format used by Microsoft's debuggers. This PE-specific CodeView format is partially documented by Microsoft and understood via header files open-sourced by Microsoft as part of their PDB (Program Database) symbol file format.

Taking up this effort to allow MinGW EXEs to be handled under Microsoft debuggers is Mark Harmstone, the open-source developer also known for porting Btrfs to Windows as well as writing an open-source bootloader for Windows and other similar projects.

With these patches and using the new "-gcodeview" compiler option, the EXEs have in turn been tested under debuggers like Microsoft Visual Studio, Windbg, Radare2, and Cvdump. Testing has happened on both x86 and AMD64.

Those interested in the prospects of running GCC-built Windows binaries under Microsoft Windows debugging tools can see this patch series on the GCC mailing list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week