From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21858 invoked by alias); 28 Jun 2010 17:53:09 -0000 Received: (qmail 21844 invoked by uid 22791); 28 Jun 2010 17:53:08 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_BJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Jun 2010 17:53:04 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5SHr3L9012974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 28 Jun 2010 13:53:03 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5SHr2Oo020412; Mon, 28 Jun 2010 13:53:03 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o5SHr2DD025681; Mon, 28 Jun 2010 13:53:02 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 15437378967; Mon, 28 Jun 2010 11:53:02 -0600 (MDT) From: Tom Tromey To: Jan Kratochvil Cc: gdb-patches@sourceware.org, Sami Wagiaalla Subject: Re: [patch 1/2] Search typedefs in namespaces also in other files References: <20100614155939.GA23639@host0.dyn.jankratochvil.net> <20100625212859.GA14185@host0.dyn.jankratochvil.net> <20100626080641.GA30093@host0.dyn.jankratochvil.net> Reply-To: tromey@redhat.com Date: Mon, 28 Jun 2010 17:53:00 -0000 In-Reply-To: <20100626080641.GA30093@host0.dyn.jankratochvil.net> (Jan Kratochvil's message of "Sat, 26 Jun 2010 10:06:41 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-06/txt/msg00642.txt.bz2 >>>>> "Jan" == Jan Kratochvil writes: Jan> 2010-06-25 Jan Kratochvil Jan> * cp-namespace.c (cp_lookup_nested_type): New variable Jan> concatenated_name. Turn the current return condition into a reverse Jan> one. Call also lookup_static_symbol_aux on the constructed qualified Jan> name. Jan> * symtab.c (lookup_symbol_aux): Move variable objfile and searching in Jan> other files into a called ... Jan> (lookup_static_symbol_aux): ... new function here. Jan> * symtab.h (lookup_static_symbol_aux): New prototype. Jan> * valops.c (value_maybe_namespace_elt): Call also Jan> lookup_static_symbol_aux if we failed otherwise. Jan> 2010-06-26 Jan Kratochvil Jan> * gdb.cp/namespace.exp (whatis C::cOtherFileType) Jan> (whatis ::C::cOtherFileType, whatis C::cOtherFileVar) Jan> (whatis ::C::cOtherFileVar, print C::cOtherFileVar) Jan> (print ::C::cOtherFileVar) Jan> (whatis C::OtherFileClass::cOtherFileClassType) Jan> (whatis ::C::OtherFileClass::cOtherFileClassType) Jan> (print C::OtherFileClass::cOtherFileClassVar) Jan> (print ::cOtherFileClassVar) Jan> (print ::C::OtherFileClass::cOtherFileClassVar): New tests. Jan> (ptype OtherFileClass, ptype ::C::OtherFileClass): Permit arbitrary Jan> trailing content. Jan> * gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType) Jan> (C::OtherFileClass::cOtherFileClassVar) Jan> (C::OtherFileClass::cOtherFileClassVar_use, C::cOtherFileType) Jan> (C::cOtherFileVar, C::cOtherFileVar_use): New. This is ok. Thanks. Tom