From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14488 invoked by alias); 3 Mar 2008 18:33:55 -0000 Received: (qmail 14477 invoked by uid 22791); 3 Mar 2008 18:33:54 -0000 X-Spam-Check-By: sourceware.org Received: from qnxmail.qnx.com (HELO qnxmail.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Mar 2008 18:33:33 +0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.42.96.5]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id NAA18361; Mon, 3 Mar 2008 13:16:04 -0500 Received: from [10.42.100.129] (dhcp-100-129 [10.42.100.129]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id NAA01743; Mon, 3 Mar 2008 13:33:31 -0500 Message-ID: <47CC447A.4090508@qnx.com> Date: Mon, 03 Mar 2008 18:33:00 -0000 From: Aleksandar Ristovski User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb@sourceware.org Subject: Re: cp-name-parser.y References: <20080229202918.GB7757@caradoc.them.org> <47CC2F00.4000703@qnx.com> <20080303172217.GA4469@caradoc.them.org> In-Reply-To: <20080303172217.GA4469@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00022.txt.bz2 Daniel Jacobowitz wrote: > Sorry, that's not what I meant. Any symbol is in one particular > anonymous namespace when we print it out. So we could print out > which anonymous namespace it's in. Oh, ok. Now I see what you meant. > > So the easiest solution may be to ignore "(anonymous namespace)::" > during symbol lookup. > > A workaround you could try would be to use quoted symbol names. > Does this work? > > -var-create - * "'(anonymous namespace)::foobar'" > That worked. Thanks. I will follow up with this, since it looks like there are other issues for the IDE. In particular, there seems to be quite a few cases where gdb can not parse forms printed by 'ptype'/'whatis'. I see mi equivalent is not implemented yet so maybe this should be taken into account then.