From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17967 invoked by alias); 24 Nov 2003 16:41:41 -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 17952 invoked from network); 24 Nov 2003 16:41:39 -0000 Received: from unknown (HELO granger.mail.mindspring.net) (207.69.200.148) by sources.redhat.com with SMTP; 24 Nov 2003 16:41:39 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by granger.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1AOJmM-0004fu-00 for gdb-patches@sources.redhat.com; Mon, 24 Nov 2003 11:41:38 -0500 Received: by berman.michael-chastain.com (Postfix, from userid 502) id 6B5554B409; Mon, 24 Nov 2003 11:41:41 -0500 (EST) To: gdb-patches@sources.redhat.com Subject: Re: [patch/testsuite/c++] test script for PR c++/186 Message-Id: <20031124164141.6B5554B409@berman.michael-chastain.com> Date: Mon, 24 Nov 2003 16:41:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2003-11/txt/msg00518.txt.bz2 Sigh, I have to put this patch on hold for a little while. I was adding more tests to it and I ran into a test where gdb really does the wrong thing with gcc 2.95.3. That is: (gdb) ptype alpha type = class A { public: int a1; virtual ~A(void); } (gdb) print alpha $1 = {a1 = 100, _vptr.A = 0x804e198} (gdb) print *&alpha $2 = {a1 = 942760548, _vptr.A = 0x63632e36} (gdb) print *&alpha $3 = {a1 = -1073743984, _vptr.A = 0x8} (gdb) print *&alpha $4 = {a1 = -1073750008, _vptr.A = 0x2c} I think the problem is somewhere around where gnuv2_value_rtti_type calls lookup_typename. Before David's big namespace patch on 2003-09-11, lookup_typename returned a TYPE_CODE_STRUCT type to gnuv2_value_rtti_type. Now lookup_typename is returning a TYPE_CODE_NAMESPACE type and as you can see, gdb is printing random weird values when it goes through gnuv2_value_rtti_type. So I am gonna pursue that bug now, because it is simpler, and put this patch on hold. Michael C === 2003-11-23 Michael Chastain New test case for PR c++/186. * gdb.cp/gdb186.cc: New file. * gdb.cp/gdb186.exp: New file.