This is the mail archive of the
cygwin
mailing list for the Cygwin project.
GCC-3.4.4-2(exp) problems ? (was Re: Debugging symbols with GDB)
- From: Angelo Graziosi <Angelo dot Graziosi at roma1 dot infn dot it>
- To: cygwin at cygwin dot com
- Date: Wed, 25 Oct 2006 15:24:07 +0200 (MET DST)
- Subject: GCC-3.4.4-2(exp) problems ? (was Re: Debugging symbols with GDB)
Building
----------------------------------------
$ cat hello.c
#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}
gcc -g hello.c -o hello
----------------------------------------
with gcc-3.4.4-2 (EXP) causes GDB ignoring the debug symbols:
--------------------------------------------
$ gdb ./hello.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 change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(gdb)
--------------------------------------------
But building the testcase with GCC-4.0.3 or GCC-4.3.0 causes a different
beaviour (I think correct):
With GCC-4.0.3:
-------------------------------------------------------------
/usr/local/g95/bin/gcc -g hello.c -o hello-4.0.3.exe
$ /usr/local/g95/bin/gcc --version
gcc (GCC) 4.0.3
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ gdb ./hello-4.0.3.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 change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) ^^^^^^^^^
-------------------------------------------------------------
With GCC-4.3.0
-------------------------------------------------------------
/usr/local/gfortran/bin/gcc -g hello.c -o hello-4.3.0.exe
$ /usr/local/gfortran/bin/gcc --version
gcc (GCC) 4.3.0 20061022 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ gdb ./hello-4.3.0.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 change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) ^^^^^^^^^^^^
-------------------------------------------------------------
Cheers,
Angelo.
--
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/