From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27152 invoked by alias); 29 Feb 2008 19:09:38 -0000 Received: (qmail 27144 invoked by uid 22791); 29 Feb 2008 19:09:37 -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; Fri, 29 Feb 2008 19:09:20 +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 NAA26547; Fri, 29 Feb 2008 13:52:15 -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 OAA18895; Fri, 29 Feb 2008 14:09:13 -0500 Message-ID: <47C85859.2030403@qnx.com> Date: Fri, 29 Feb 2008 19:32: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: <47C84D48.2020807@qnx.com> <20080229185513.GA2793@caradoc.them.org> In-Reply-To: <20080229185513.GA2793@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-02/txt/msg00263.txt.bz2 Daniel Jacobowitz wrote: > On Fri, Feb 29, 2008 at 01:22:00PM -0500, Aleksandar Ristovski wrote: >> Hello, >> >> If you could, let me know how mature is that code there and can it be used. > > What would you like to use it for? > I am looking at that since right now something like this: -var-create - * "(anonymous namespace)::foobar" will not work since c_parse doesn't know anything about '(anonymous namespace)'. I guess it wouldn't be too hard to hack around this particular case, but a proper solution would be preferable. I see that language_defn for c++ uses c_preprocess_and_parse but there should probably be something like cp_preprocess_and_parse, sharing the macro handling part but calling cpname_parse instead of c_parse. Or maybe calling cpname_parse if c_parse fails. The issue is evident when using IDE (CDT). IDE will call ptype foobar which prints type (correctly) something like this: '(anonymous namespace)::FooBar' and then IDE uses this string as argument to -var-create, but unfortunately, this doesn't work.