From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12256 invoked by alias); 26 Nov 2001 23:38:39 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12036 invoked from network); 26 Nov 2001 23:38:34 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by hostedprojects.ges.redhat.com with SMTP; 26 Nov 2001 23:38:34 -0000 Received: from drow by nevyn.them.org with local (Exim 3.32 #1 (Debian)) id 168VKe-0006xz-00; Mon, 26 Nov 2001 18:38:36 -0500 Date: Wed, 14 Nov 2001 20:13:00 -0000 From: Daniel Jacobowitz To: Daniel Berlin Cc: Benjamin Kosnik , Eli Zaretskii , jason@redhat.com, libstdc++@gcc.gnu.org, gdb@sources.redhat.com Subject: Re: c++ debugging hosed Message-ID: <20011126183836.A9099@nevyn.them.org> Mail-Followup-To: Daniel Berlin , Benjamin Kosnik , Eli Zaretskii , jason@redhat.com, libstdc++@gcc.gnu.org, gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-SW-Source: 2001-11/txt/msg00159.txt.bz2 Message-ID: <20011114201300.5Ny54nzIt_PgT9CjXE_rYmtBNEd5gdk9qooJyZmLLTY@z> On Sun, Nov 25, 2001 at 03:29:08PM -0500, Daniel Berlin wrote: > > > On Sun, 25 Nov 2001, Benjamin Kosnik wrote: > > > > > > No, it's relevant to STABS, too. > > > It's due to not properly searching virtual baseclasses. > > > I might still have the changes to do that somewhere, if someone wants > > > them. > > > > This has been broken for some time now. I'd appreciate it if it got > > fixed, so that C++ could be debugged properly. > I'm sure a lot of people would. > Unfortunately, it appears I don't have the code i had worked up to > abstract out the base class offset finding anymore. > What's happening is that GDB wants to know the baseclass offset, and > the routine it uses is tuned to either gnu-v2 or hp aCC (it checks > for something only hp's debug readers fill in, and if it doesn't find > it, it assumes gnu-v2), and the gnu-v2 code either returns the wrong > value (weird errors occur), or -1, which gives you "virtual baseclass > botch"/attempts to deref int values as pointers. > > baseclass_offset needs to be abstracted into the cp abi model, and all > existing uses need to use it. Could you clarify what symptom this fix you're discussing is supposed to solve? I thought it was the one I was working on, but baseclass_offset actually does nothing ABI specific at all. Meanwhile the problem that was most annoying me wasn't even covered by the testsuite. Patch and tests coming up in the next hour. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer