delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/26/08:46:31

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 26 Feb 2008 13:45:40 +0000 (WET)
From: Hugh Sasse <hgs AT dmu DOT ac DOT uk>
To: cygwin AT cygwin DOT com
Subject: gdb, no line numbers after gcc -g ???
Message-ID: <Pine.GSO.4.64.0802261259480.22280@brains.eng.cse.dmu.ac.uk>
MIME-Version: 1.0
X-IsSubscribed: yes
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

With gdb under cygwin I'm getting:

Program received signal SIGSEGV, Segmentation fault.
0x00405309 in image_doubles_read ()
(gdb)  where
#0  0x00405309 in image_doubles_read ()
#1  0x004063c8 in doublesimage_read ()
#2  0x004076fc in main ()
(gdb) info locals
No symbol table info available.
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Done


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 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".

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?

        Thank you,
        Hugh

--
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