www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/12/23/06:35:12

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Message-ID: <3C25C254.2F6BC615@is.elta.co.il>
Date: Sun, 23 Dec 2001 13:39:00 +0200
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: gcc 3.0.2 and -ggdb debugging info
References: <3C227C35 DOT 8DC5059 AT phekda DOT freeserve DOT co DOT uk>
Reply-To: djgpp-workers AT delorie DOT com

> Date: Fri, 21 Dec 2001 00:03:01 +0000
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> 
> Does the '-ggdb' option work with gcc 3.0.2? I've been trying to debug a
> program compiled with the '-ggdb3' option with gdb 4.18 and 5.0 and I get
> a 'No line known for main' (or similar wording) when I do 'l main'. I
> tried compiling with just '-ggdb', but I got the same result. When I fall
> back on compiling with '-g', I can debug again.
> 
> So, is this a toolchain issue (gdb 5.0 doesn't support something gcc 3.0.2
> does) or is there a bug in gcc 3.0.2's handling of '-ggdb'?

I don't think GDB is the culprit here: it supported stabs since v4.18,
perhaps even before that.  I'm quite sure stabs work for me with GCC
3.0.2 as well, but I cannot test that at the moment.

Do -ggdb and -gstabs give you the same results?

If nothing else helps, could you make the offending program (source
and unstripped binary) available for download somewhere, so I could
look into it?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019