delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/31/03:42:16

Date: Wed, 31 Jan 2001 10:40:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Can't access derived class member vars
In-Reply-To: <957po6$7ep$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.1010131103713.29266W@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 31 Jan 2001 dcasale AT my-deja DOT com wrote:

> In RHIDE using the gstabs debugging switch, I'm able to access class
> member variables, but _only_ if they're not base class variables being
> accessed inside a derived class.

In general, whenever GDB can make any sense from a C++ program, you 
should be grateful, since any serious debugging of C++ code without
dwarf2 debug info is pretty much broken.

Hopefully, DJGPP will support dwarf2 in some not-too-distant future.

> Is this a known bug/feature?

I guess so.

> Is there any workaround?

Try compiling and linking with -gstabs+ instead of -gstabs.  If that 
doesn't help, I think you will have to resort to printf-style debugging.

- Raw text -


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