This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Insight/gdb on MinGW/MSYS (Windows XP)?


Duncan Murdoch wrote:
On 11/14/2006 11:45 AM, Toralf Lund wrote:
Has anyone here got Insight working properly on a MinGW/MSYS setup under Windows XP? Or even a plain gdb? I'm trying to debug applications built by a gcc version set up for target mingw32, using a binary version downloaded from the MinGW project web, but it doesn't work very well. Actually, I can do *some* work, but

I use the Cygwin gdb and insight binaries, and they're fine. You need to watch out for pathnames (e.g. in your .gdbinit file); they need to be specified in Cygwin format, not Windows format.


The shell doesn't really matter (Insight is fine in a Windows CMD shell), but it might cause less cognitive dissonance ;-) if you use a Cygwin shell as well, rather than MSYS.

This works pretty well for MinGW binaries. Currently we use -gdwarf-2, we used to use -g, for debug information.
Right. Why didn't I think of that? I've now installed a "minimal" Cygwin setup consisting only of the gdb package and the base components (via the networked installer), and tested the debuggers a bit. And, yes, it does look like they are somewhat more reliable than the MinGW builds - although I have managed to crash this version of Insight, too. I'm not able to run Insight properly from the CMD shell, though; when I start it, *something* seems to happen, but the windows never show up...

Thanks,

- Toralf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]