From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20806 invoked by alias); 14 Nov 2001 16:04:22 -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 20728 invoked from network); 14 Nov 2001 16:04:17 -0000 Received: from unknown (HELO prospero.cambridge.redhat.com) (62.30.164.150) by sourceware.cygnus.com with SMTP; 14 Nov 2001 16:04:17 -0000 Received: (from jason@localhost) by prospero.cambridge.redhat.com (8.11.6/8.11.6) id fAEG2CG03229; Wed, 14 Nov 2001 16:02:12 GMT X-Authentication-Warning: prospero.cambridge.redhat.com: jason set sender to jason@redhat.com using -f To: Benjamin Kosnik Cc: libstdc++@gcc.gnu.org, gdb@sources.redhat.com Subject: Re: c++ debugging hosed References: <200110291812.f9TICtQ10130@constant.com> From: Jason Merrill In-Reply-To: <200110291812.f9TICtQ10130@constant.com> (Benjamin Kosnik's message of "Mon, 29 Oct 2001 10:12:55 -0800") Date: Sat, 03 Nov 2001 01:50:00 -0000 Message-ID: User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2001-11/txt/msg00046.txt.bz2 >>>>> "Benjamin" == Benjamin Kosnik writes: > On x86/linux, both --with-dwarf2 and default gcc-3.x toolchains can no > longer find RTTI info: > --with-dwarf2: > (gdb) p *this > can't find class named `std::basic_filebuf >', as given by C++ RTTI > default: > (gdb) p *this > Attempt to take contents of a non-pointer value. > Sadly, this bug has been around for 2 weeks now. It's making debugging > C++ code more difficult than it should be. Any hope for a quick fix? I just updated my gdb for the first time in months and ran into the same problem. Looks like the V3 ABI support code isn't ready for prime time. Until it is, you can disable it with this patch: *** gnu-v3-abi.c.~1~ Wed Nov 14 12:33:51 2001 --- gnu-v3-abi.c Wed Nov 14 15:59:39 2001 *************** init_gnuv3_ops (void) *** 349,355 **** --- 360,368 ---- void _initialize_gnu_v3_abi (void) { + #if 0 init_gnuv3_ops (); register_cp_abi (gnu_v3_abi_ops); + #endif }