This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Insight/gdb on MinGW/MSYS (Windows XP)?
- From: Toralf Lund <toralf at procaptura dot com>
- To: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Fri, 17 Nov 2006 15:50:11 +0100
- Subject: Re: Insight/gdb on MinGW/MSYS (Windows XP)?
- References: <4559F2A5.8040607@procaptura.com> <4559FEC6.6020700@stats.uwo.ca>
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