From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20534 invoked by alias); 11 Nov 2009 23:02:01 -0000 Received: (qmail 20448 invoked by uid 22791); 11 Nov 2009 23:02:00 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Nov 2009 23:01:54 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id EC29B10927; Wed, 11 Nov 2009 23:01:52 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id D52AA1078F; Wed, 11 Nov 2009 23:01:52 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1N8MCD-0007Ne-Lm; Wed, 11 Nov 2009 18:01:50 -0500 Date: Wed, 11 Nov 2009 23:02:00 -0000 From: Daniel Jacobowitz To: Keith Seitz Cc: gdb-patches@sourceware.org Subject: Re: [RFA] Typedef support for linespecs Message-ID: <20091111230149.GA28314@caradoc.them.org> Mail-Followup-To: Keith Seitz , gdb-patches@sourceware.org References: <4AFB3F69.9070107@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AFB3F69.9070107@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00266.txt.bz2 On Wed, Nov 11, 2009 at 02:49:13PM -0800, Keith Seitz wrote: > ChangeLog > 2009-11-11 Keith Seitz > > * linespec.c (lookup_prefix_sym): Lookup the symbol > in both STRUCT_DOMAIN and VAR_DOMAIN. > > testsuite/ChangeLog > 2009-11-11 Keith Seitz > > * gdb.cp/classes.cc (ByAnyOtherName): Add typedef and > use it instead of "Foo". > * gdb.cp/classes.exp (do_tests): Add a test to access > a method through a typedef'd class name. OK. I still hate linespecs, though. (Seriously... if we figure out that it isn't a file:line, we should use the normal expression parser for an expression portion of it... yes, I do realize just how difficult this would be, but the inconsistencies drive folks mad.) -- Daniel Jacobowitz CodeSourcery