This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/testsuite/c++] test script for PR c++/186
- From: David Carlton <carlton at kealia dot com>
- To: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 24 Nov 2003 12:02:37 -0800
- Subject: Re: [patch/testsuite/c++] test script for PR c++/186
- References: <20031124181321.4AF214B409@berman.michael-chastain.com>
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