delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/26/09:45:16

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 26 Feb 2008 14:43:14 +0000 (WET)
From: Hugh Sasse <hgs AT dmu DOT ac DOT uk>
To: cygwin AT cygwin DOT com
Subject: Re: gdb, no line numbers after gcc -g ???
In-Reply-To: <47C421F4.7E50D1EB@dessent.net>
Message-ID: <Pine.GSO.4.64.0802261440490.23279@brains.eng.cse.dmu.ac.uk>
References: <Pine DOT GSO DOT 4 DOT 64 DOT 0802261259480 DOT 22280 AT brains DOT eng DOT cse DOT dmu DOT ac DOT uk> <47C41CB6 DOT 1B6B8E05 AT dessent DOT net> <Pine DOT GSO DOT 4 DOT 64 DOT 0802261411120 DOT 23279 AT brains DOT eng DOT cse DOT dmu DOT ac DOT uk> <47C421F4 DOT 7E50D1EB AT dessent DOT net>
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-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Tue, 26 Feb 2008, Brian Dessent wrote:

> Hugh Sasse wrote:
> 
> > OK, it works for a hello world, it says the symbols are loaded.
> > Therefore, as was most likely, I've munged something.  How do I
> > interrogate object files to see which is/are missing the symbol data
> > (if that's what would throw everything else off the scent)?
> 
> You can use "objdump -h file.o" and look at the sections.  If you see
> .stab and .stabstr then you have STABS debug symbols (default for -g);
> if you have .debug_{abbrev,info,line,frame,pubnames,aranges,str} then
> you have Dwarf-2 debug symbols, which you get with -gdwarf-2 and are
> generally more sophisticated and better supported by gdb.  If you see
> neither of those sets of sections, you have no debug data.

I see what's happened now.  I tried to add a --enable-extra-pe-debug which
didn't work, complaining about a -f option, so I put the whole thing in quotes.
I've thrown that option out now, and my image.o now has stabs information,
so I can proceed now.  Thank you.
> 
> Brian
> 
        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