From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23962 invoked by alias); 29 May 2002 15:19:44 -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 23928 invoked from network); 29 May 2002 15:19:37 -0000 Received: from unknown (HELO mail.constant.com) (198.92.136.102) by sources.redhat.com with SMTP; 29 May 2002 15:19:37 -0000 Received: from constant.com (mail [198.92.136.102]) by mail.constant.com (8.12.3/8.12.3) with SMTP id g4TFIRxX027209; Wed, 29 May 2002 10:18:28 -0500 Date: Wed, 29 May 2002 08:34:00 -0000 From: "B. Kosnik" To: Daniel Jacobowitz Cc: mec@shout.net, gdb-patches@sources.redhat.com Subject: Re: gdb.c++ testsuite 1.3: member_data_static.exp (resend) Message-Id: <20020529081930.325bc903.bkoz@nabi.net> In-Reply-To: <20020529150837.GA21893@branoic.them.org> References: <200205282112.g4SLCap24212@duracef.shout.net> <20020529030004.4d9ce9e5.bkoz@redhat.com> <20020529150837.GA21893@branoic.them.org> Reply-To: bkoz@redhat.com Organization: secret_agent_headquarters Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg01002.txt.bz2 > Compile the testcase (just -c will do). Then run `nm' over the > symbols. Look for the `data' member; it isn't there. > is correct. My C++ lawyering is a little rusty, but I believe this is > correct; it's a templated member, and not explicitly instantiated, and > not even implicitly instantiated. I don't see a reason for it to be > emitted, and if it isn't emitted GDB can't help you figure out what > its value is. Aaah. You are correct. Adding: template class __gnu_test::gnu_obj_3; template class __gnu_test::gnu_obj_2; Gives: (gdb) p test3 $1 = {static data = { = {static test = true, static key1 = 5, static key2 = 77, static value = oriental}, _vptr.gnu_obj_2 = 0x8092fac, static value_derived = etruscan}} So, with this addition, this test case would pass, no? -benjamin