That's a mouthful of a question but basically I want to know if I can use GDB on an application compiled to i686-pc-mingw on a linux cross-compiler. I want to debug the resulting program on the target windows box with source code references etc.
Is it possible and if so what to I need to take into account (ie, same version of mingw files, same binutils, same relative path to source code, etc...)?
One thing that throws me a bit is the version numbers of GCC and GDB don't seem to match up. How do you tell if versions will be compatible?
If these questions sound silly it's just because I haven't used GDB much, it's just something I want to start doing so I'm not trying to guess what broke.