From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21611 invoked by alias); 23 Jul 2009 19:29:26 -0000 Received: (qmail 21598 invoked by uid 22791); 23 Jul 2009 19:29:25 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jul 2009 19:29:18 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6NJTGUk017588 for ; Thu, 23 Jul 2009 15:29:16 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6NJTFEA016138; Thu, 23 Jul 2009 15:29:15 -0400 Received: from toner.yyz.redhat.com (toner.yyz.redhat.com [10.15.16.55]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6NJTEOM029222; Thu, 23 Jul 2009 15:29:14 -0400 Message-ID: <4A68B9CD.4010706@redhat.com> Date: Thu, 23 Jul 2009 22:19:00 -0000 From: Sami Wagiaalla User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Sami Wagiaalla , GDB Patches Subject: Re: [patch] Perform a namespace lookup at every block level References: <4A57512A.7090208@redhat.com> <20090710194949.GA2064@caradoc.them.org> <4A5B68A4.30006@redhat.com> <4A68B91D.2080206@redhat.com> In-Reply-To: <4A68B91D.2080206@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-07/txt/msg00588.txt.bz2 > + /* C++ language specific lookup requires the lowest block level. */ > + if (language != language_cplus) > + block = function_block; > + > + } I dont know if resetting the pointer is needed by other languages. I saw no test failures without it. I just did it to preserve the code for other languages in case I am missing something. Sami