Improving debugging (gdb) support

Michael Wetherell mike.wetherell at
Wed May 22 19:28:38 CDT 2002

On Wednesday 22 May 2002 10:39 am, Tijs van Bakel wrote:
> Either I could work on winedbg to match
> gdb's features, or I could try to make gdb understand Wine better.
> Given the amount of useful frontends for gdb, it seems wiser to go for
> the second option. 

gdb can debug Windows programs compiled with Cygwin or mingw if you compile 
gdb with support for PE executables (I expect you know that already).

More details:

I wouldn't mind knowing what people think of the technique. I was wondering 
whether to suggest over at Debian that gdb be compiled this way by default. I 
don't know whether that's a good idea or whether things could be done better 
differently. It's possible to get it to work with RSXNTDJ progs too actually.

And I think you're right, it's a pretty nice way to work. You can use the 
mingw GNU/Linux to Windows cross compiler plus gdb, and then you can use your 
usual development environment for working on Windows programs.

So the work of the Cygwin and mingw projects helps Wine, and conversely any 
work you and the others who are already working on this do on supporting MS 
debugging formats then that could be used in the cygwin/mingw project's 
gdb.exe (presumably).

More information about the wine-devel mailing list