Date: Wed, 31 Jan 2001 10:40:24 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.