www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/13/14:05:40

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Mon, 13 May 2002 21:03:22 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
Message-Id: <1438-Mon13May2002210321+0300-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com, pavenis AT latnet DOT lv
In-reply-to: <001001c1fa53$37d5c2b0$0102a8c0@acceleron> (acottrel@ihug.com.au)
Subject: Re: C++ Debugging Quirk/Problem (was Re: Debugging Problem with win2k (fwd) )
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020513073555 DOT 8317A-100000 AT is> <001001c1fa53$37d5c2b0$0102a8c0 AT acceleron>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
> Date: Mon, 13 May 2002 17:52:34 +1000
> 
> There still appears to be problems with GCC 3.04 & GDB 5.2 (Rhide) debugging
> C++ apps. I have tried the source (test.cpp) code below in Rhide 1.5.0
> snaphot dated 30-Apr-2002 with GCC 3.04 and it appears that the C++
> debugging output is not quite working correctly in Rhide. I can step over
> the lines, but cannot set a breakpoint on a line and go to the line.

Is this with -g (i.e. COFF debug info) or with other -g options?  If
the latter, what options were those?

As I wrote earlier today, COFF debugging is completely broken with GCC
3.x (I don't think it's a GDB problem, since it works with older
versions of GCC).

With other debug options it seems to work correctly for me, including
with GDB 5.2.  I tried -gstabs+, -gdwarf-2, and -ggdb3; they all
worked for the sample program you posted.  Setting breakpoints and
stepping works as expected.

If you have specific session transcripts that demonstrate failures,
please show them.

> I used the compiler debugging options in Rhide as Eli suggested "-gstabs+".
> When I used this I could step through the code, but I could not set a
> breakpoint on a line and go to the line.

Do you see the same in command-line GDB?  I don't have any problems
with -gstabs+, so please tell how should I try to reproduce that in
GDB.

- Raw text -


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