Re: gcc + gdb + breakpoint => SIGSEGV

2008-03-03 Thread Ray Hurst
Dave, I downloaded the GDB 6.7.1 source and built it. Ray Dave Ohlsson wrote: Hi, This is what I did: 1) Removed several applications (including MtSQL 5.0) and rebooted. => no help. 2) Downgraded gdb from version 6.5.50.20060706-cvs to version 6.3.50_2004-12-28-cvs (I couldn't find gdb v

Re: gcc + gdb + breakpoint => SIGSEGV

2008-03-02 Thread Ray Hurst
I had the same issue a couple of weeks ago. I never figured it out. I ended up updating the compiler to v4.2.3 then I updated gdb to v6.7.1. Everything started working. You might try just updating gdb and see what happens. The issue was only with cygwin. The same versions you have below ran un

Re: Issue with GDB under Cygwin and XP

2008-02-23 Thread Ray Hurst
enses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-cygwin". Thanks for your help. Ray Ray

Re: Issue with GDB under Cygwin and XP

2008-02-17 Thread Ray Hurst
Pedro Alves wrote: A Friday 15 February 2008 23:21:45, Ray Hurst wrote: Here is a run of a HellowWorld program (listed below in gdb). Can someone tell me why the variables a, b, c are not the correct values. I dumped the local stack and the variables are correct on the stack. I'm ru

Re: Issue with GDB under Cygwin and XP

2008-02-15 Thread Ray Hurst
Here is a run of a HellowWorld program (listed below in gdb). Can someone tell me why the variables a, b, c are not the correct values. I dumped the local stack and the variables are correct on the stack. I'm running Windows XP under cygwin. gcc 4.2.3 The gdb run is as follows: GNU gdb 6.5.5

Re: Issue with GDB under Cygwin and XP

2008-02-13 Thread Ray Hurst
Marco Atzeri wrote: --- Ray Hurst <[EMAIL PROTECTED]> 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, sinc

Re: Issue with GDB under Cygwin and XP

2008-02-13 Thread Ray Hurst
Jim Marshall wrote: Ray Hurst wrote: I'm running under Windows XP and Cygwin. I ran GDB on a simple C program and captured the output (below). I have a few questions: Why can I run the program several times with no errors but as soon as I set a breakpoint at main it gets a SIGSEGV

Issue with GDB under Cygwin and XP

2008-02-11 Thread Ray Hurst
only addresses? C:\Documents and Settings\Ray Hurst\workspace\CDT\HelloWorld-ANSIC\Debug>gdb Hel loWorld-ANSIC.exe GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to c

Re: Can I tell which version of newlib I have?

2007-04-24 Thread Ray Hurst
Dave Korn wrote: On 25 April 2007 00:19, Ray Hurst wrote: Brian Dessent wrote: In the case of Cygwin, the C library is provided by Cygwin, in the form of cygwin1.dll. Cygwin relies on newlib to implement some things, but malloc is not one of them. Technically you are correct. gcc does

Re: Can I tell which version of newlib I have?

2007-04-24 Thread Ray Hurst
Brian Dessent wrote: Ray Hurst wrote: It was my understanding that if I write a C program and compiled it with gcc that gcc used newlib for all of the stdlib functions including malloc, realloc and free. Gcc doesn't have any choice in the matter. All it knows is that there's a C

Re: Can I tell which version of newlib I have?

2007-04-24 Thread Ray Hurst
Brian Dessent wrote: Brian Dessent wrote: The version you are using is whatever was current in CVS when the version of Cygwin you're using was built. Newlib doesn't really do versions, other than a token release every year around December. But that's completely irrelevant for anything relatin

Re: Can I tell which version of newlib I have?

2007-04-24 Thread Ray Hurst
Brian Dessent wrote: Brian Dessent wrote: The version you are using is whatever was current in CVS when the version of Cygwin you're using was built. Newlib doesn't really do versions, other than a token release every year around December. But that's completely irrelevant for anything relatin

Can I tell which version of newlib I have?

2007-04-24 Thread Ray Hurst
I'd like to know which version of newlib I have. Has anybody written a heap walker for the malloc routines. Ray -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: