This is the mail archive of the
mailing list for the Cygwin project.
gdb, no line numbers after gcc -g ???
- From: Hugh Sasse <hgs at dmu dot ac dot uk>
- To: cygwin at cygwin dot com
- Date: Tue, 26 Feb 2008 13:45:40 +0000 (WET)
- Subject: gdb, no line numbers after gcc -g ???
With gdb under cygwin I'm getting:
Program received signal SIGSEGV, Segmentation fault.
0x00405309 in image_doubles_read ()
#0 0x00405309 in image_doubles_read ()
#1 0x004063c8 in doublesimage_read ()
#2 0x004076fc in main ()
(gdb) info locals
No symbol table info available.
The program is running. Exit anyway? (y or n) y
Now, the program was definitely compiled with -g, which has been
sufficient on other systems (Suns) to give me line numbers in the
past. According to what I can find with Google it should be
sufficient, and I can find little about this problem on cygwin with
my searching. Have I missed something obvious? I updated my cygwin
last week using the latest setup.exe, and the versions
12:10:03$ gdb --version
GNU gdb 126.96.36.19960706-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".
12:10:08$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 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.
Is there anything else I need to do in order to get line numbers
reported correctly? What other information would be good to provide?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html