From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18914 invoked by alias); 17 Nov 2006 14:51:33 -0000 Received: (qmail 18902 invoked by uid 22791); 17 Nov 2006 14:51:32 -0000 X-Spam-Check-By: sourceware.org Received: from indonesia.procaptura.com (HELO indonesia.procaptura.com) (193.214.130.21) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Nov 2006 14:51:16 +0000 Received: from localhost ([127.0.0.1]) by indonesia.procaptura.com with esmtp (Exim 4.30) id 1Gl52h-000634-Q5 for insight@sources.redhat.com; Fri, 17 Nov 2006 15:50:11 +0100 Message-ID: <455DCC23.4030704@procaptura.com> Date: Fri, 17 Nov 2006 14:51:00 -0000 From: Toralf Lund User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: "insight@sources.redhat.com" Subject: Re: Insight/gdb on MinGW/MSYS (Windows XP)? References: <4559F2A5.8040607@procaptura.com> <4559FEC6.6020700@stats.uwo.ca> In-Reply-To: <4559FEC6.6020700@stats.uwo.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2006-q4/txt/msg00042.txt.bz2 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