delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/14/00:47:24

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47B3D594.80100@wbemsolutions.com>
Date: Thu, 14 Feb 2008 00:45:56 -0500
From: Jim Marshall <jim DOT marshall AT wbemsolutions DOT com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Newsgroups: gmane.os.cygwin
To: cygwin AT cygwin DOT com
Subject: Re: Issue with GDB under Cygwin and XP
References: <fovdsg$qbq$1 AT ger DOT gmane DOT org> <481637 DOT 96321 DOT qm AT web25015 DOT mail DOT ukl DOT yahoo DOT com> <fovh4h$7od$1 AT ger DOT gmane DOT org>
In-Reply-To: <fovh4h$7od$1@ger.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Ray Hurst wrote:
> Marco Atzeri wrote:
>> --- Ray Hurst <rhurst2 AT cox DOT net> 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 <stdio.h>
> #include <stdlib.h>
> 
> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019