Windbg cannot handle the debugging information that will be generated with -g when installing mingw. However, it can supposedly deal with COFF characters.
If the source files for your DLL are small enough, you can get COFF debugging information for the build (-gcoff, not -g).
So, Windbg can (supposedly) handle COFF characters, and GCC can generate them. So it should be easy from there, right? I tried to do just that with a Win32 executable file created by Visual Studio 2008 that loaded a gcc-compiled DLL. Unfortunately for me compilation with -gcoff did not work. Mingw gcc will not generate COFF characters for projects with more than 64k lines of code. The DLL I used was significantly larger than 64K lines of code. Unfortunately, I have to admit, I gave up and stepped back on the correct OutputDebugString. Otherwise, I can give more complete instructions. I did not want to explore the possibility of creating gcc do COFF characters for large source files or an alternative way to write debugging extensions to parse DWARF or STABS data in windbg internal symbol tables.
I fixed the problem by the way!
Further suggestions can be found in this forum at windbg.info .
Pete
source share