From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23045 invoked by alias); 24 Nov 2003 20:02:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23035 invoked from network); 24 Nov 2003 20:02:37 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 24 Nov 2003 20:02:37 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id 6832BC6AC; Mon, 24 Nov 2003 12:02:37 -0800 (PST) To: mec.gnu@mindspring.com (Michael Elizabeth Chastain) Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/testsuite/c++] test script for PR c++/186 References: <20031124181321.4AF214B409@berman.michael-chastain.com> From: David Carlton Date: Mon, 24 Nov 2003 20:02:00 -0000 In-Reply-To: <20031124181321.4AF214B409@berman.michael-chastain.com> (Michael Elizabeth Chastain's message of "Mon, 24 Nov 2003 13:13:21 -0500 (EST)") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00537.txt.bz2 On Mon, 24 Nov 2003 13:13:21 -0500 (EST), mec.gnu@mindspring.com (Michael Elizabeth Chastain) said: > But beyond that level, gdb is printing bogus values. Specifically: > I've got these two classes, "A" and "B". "B" is derived from "A". > I've got an object that used to be a "B", but thanks to B::~B, the > dynamic type is actually "A" by now. When I say "print *pb", gdb > prints values for the fields of B. But it prints bogus data, and it > prints *different* bogus data on successive calls. It's not like > gdb is choosing an infelicitous type and forcing the target memory > into that type, it's like gdb is dereferencing wild pointers > internally. Right, gotcha. That's bad. David Carlton carlton@kealia.com