From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13092 invoked by alias); 14 Feb 2008 05:46:53 -0000 Received: (qmail 13072 invoked by uid 22791); 14 Feb 2008 05:46:52 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Feb 2008 05:46:14 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JPWv6-0000rL-NL for cygwin@cygwin.com; Thu, 14 Feb 2008 05:46:04 +0000 Received: from c-71-232-196-214.hsd1.ma.comcast.net ([71.232.196.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Feb 2008 05:46:04 +0000 Received: from jim.marshall by c-71-232-196-214.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Feb 2008 05:46:04 +0000 To: cygwin@cygwin.com From: Jim Marshall Subject: Re: Issue with GDB under Cygwin and XP Date: Thu, 14 Feb 2008 08:16:00 -0000 Message-ID: <47B3D594.80100@wbemsolutions.com> References: <481637.96321.qm@web25015.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2008-02/txt/msg00339.txt.bz2 Ray Hurst wrote: > Marco Atzeri wrote: >> --- Ray Hurst ha scritto: >> >>>> Works fine on my Windows XP Pro machine using the >>> same GDB and gcc >>>> version 3.4.4. What gcc version do you have? >>>> >>>> The stack trace would indicate that the crash is >>> occurring before it >>>> gets to your main function, since that code >>> doesn't have debug symbols >>>> you get addresses. >>>> >>>> >>> Jim, >>> It's definitely crashing before getting to main and >>> I don't know why. >>> The tools versions are: gcc 4.2.3, binutils 2.17.50, >>> and gdb 6.5.50. >>> >>> Ray >> >> Hi Ray >> I will bet on Gcc 4.2.3. >> >> there are some reasons why on cygwin gcc 3.4.4 >> is still the default version. >> >> Regards >> Marco >> >> >> >> >> ___________________________________ L'email della prossima >> generazione? Puoi averla con la nuova Yahoo! Mail: >> http://it.docs.yahoo.com/nowyoucan.html >> > Actually I was incorrect. The dump I gave you was for gcc 3.4.4. > > I got it to run under gcc 4.2.3 using Insight. > > I modified the program as follows: > /* > > ============================================================================ > > Name : HelloWorld.c > Author : Ray Hurst > Version : > Copyright : Your copyright notice > Description : Hello World in C, Ansi-style > > ============================================================================ > > */ > > #include > #include > > int main(void) { > int a,b,c; > a = 10; > b = 20; > c = 30; > puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */ > printf("\na = %d, b = %d, c = %d\n", a,b,c); > return EXIT_SUCCESS; > } > > When I step through the program I cannot get the Local Variables window > to update the variables when I step over the lines setting the variable. > > I look at the stack area in memory they definitely are updating. > Ray > > > Local variables window? Is that in insight? I've not used insight so can't really help you there. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13096 invoked by alias); 14 Feb 2008 05:46:53 -0000 Received: (qmail 13084 invoked by uid 22791); 14 Feb 2008 05:46:52 -0000 X-Spam-Check-By: sourceware.org Received: from cluster.islandnet.com (HELO cluster.islandnet.com) (199.175.106.54) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Feb 2008 05:46:19 +0000 Received: from [71.232.196.214] (port=1652 helo=[192.168.1.189]) by cluster05.islandnet.com with ESMTPSA (TLSv1:AES256-SHA:256) id 1JPWvG-000452-J8 for cygwin@cygwin.com; Wed, 13 Feb 2008 21:46:17 -0800 Message-ID: <47B3D594.80100@wbemsolutions.com> Date: Thu, 14 Feb 2008 09:29:00 -0000 From: Jim Marshall User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: gmane.os.cygwin To: cygwin@cygwin.com Subject: Re: Issue with GDB under Cygwin and XP References: <481637.96321.qm@web25015.mail.ukl.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2008-02/txt/msg00340.txt.bz2 Message-ID: <20080214092900.1Q-hp6dENYRLVtwXIEFdxxvVCuO6FzKWvunz-kFuwI0@z> Ray Hurst wrote: > Marco Atzeri wrote: >> --- Ray Hurst ha scritto: >> >>>> Works fine on my Windows XP Pro machine using the >>> same GDB and gcc >>>> version 3.4.4. What gcc version do you have? >>>> >>>> The stack trace would indicate that the crash is >>> occurring before it >>>> gets to your main function, since that code >>> doesn't have debug symbols >>>> you get addresses. >>>> >>>> >>> Jim, >>> It's definitely crashing before getting to main and >>> I don't know why. >>> The tools versions are: gcc 4.2.3, binutils 2.17.50, >>> and gdb 6.5.50. >>> >>> Ray >> >> Hi Ray >> I will bet on Gcc 4.2.3. >> >> there are some reasons why on cygwin gcc 3.4.4 >> is still the default version. >> >> Regards >> Marco >> >> >> >> >> ___________________________________ L'email della prossima >> generazione? Puoi averla con la nuova Yahoo! Mail: >> http://it.docs.yahoo.com/nowyoucan.html >> > Actually I was incorrect. The dump I gave you was for gcc 3.4.4. > > I got it to run under gcc 4.2.3 using Insight. > > I modified the program as follows: > /* > > ============================================================================ > > Name : HelloWorld.c > Author : Ray Hurst > Version : > Copyright : Your copyright notice > Description : Hello World in C, Ansi-style > > ============================================================================ > > */ > > #include > #include > > int main(void) { > int a,b,c; > a = 10; > b = 20; > c = 30; > puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */ > printf("\na = %d, b = %d, c = %d\n", a,b,c); > return EXIT_SUCCESS; > } > > When I step through the program I cannot get the Local Variables window > to update the variables when I step over the lines setting the variable. > > I look at the stack area in memory they definitely are updating. > Ray > > > Local variables window? Is that in insight? I've not used insight so can't really help you there. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/