Cross Debug Win32 Mingw32 C / C ++ program for Linux and Wine using GDB

I installed mingw-w64 and gdb-mingw-w64 on Ubuntu 14.10 using:

sudo apt-get install mingw-w64 sudo apt-get install gdb-mingw-w64

I can compile C / C ++ programs and run them from Wine or on Windows machine.

I installed the gdb version of mingw32 in order to be able to debug a Windows application compiled with Mingw.

I tried using the latest Netbeans 8, Code :: Blocks 13.12, Eclipse Luna and was able to set up the Mingw toolchain to be used with the IDE to build a win32 app from Linux.

I also tried to set up the same way in those IDEs to use the GDB version (gdb-mingw-w64) of Mingw in the same way that standD GDB was sued for the non-integrated GCC toolchain, but couldn't get it to work :(

How can I debug a C / C ++ program like this compiled with Mingw from Linux? How do I configure in any of the IDEs listed above?

Thank!

+3


source to share





All Articles