From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12285 invoked by alias); 20 Jun 2011 17:53:17 -0000 Received: (qmail 12274 invoked by uid 22791); 20 Jun 2011 17:53:16 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,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, 20 Jun 2011 17:52:58 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5KHqu0f003681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Jun 2011 13:52:57 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p5KHquiA018906; Mon, 20 Jun 2011 13:52:56 -0400 Received: from barimba (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 p5KHqtFQ029756; Mon, 20 Jun 2011 13:52:55 -0400 From: Tom Tromey To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: regression: FYI: fix 'this' lookup for lambdas References: <20110619081237.GA26190@host1.jankratochvil.net> Date: Mon, 20 Jun 2011 17:53:00 -0000 In-Reply-To: <20110619081237.GA26190@host1.jankratochvil.net> (Jan Kratochvil's message of "Sun, 19 Jun 2011 10:12:37 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (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: 2011-06/txt/msg00268.txt.bz2 >>>>> "Jan" == Jan Kratochvil writes: Jan> at least for: Jan> -PASS: gdb.dwarf2/dw2-cp-infcall-ref-static.exp: p f() Jan> +ERROR: Process no longer exists Jan> +UNRESOLVED: gdb.dwarf2/dw2-cp-infcall-ref-static.exp: p f() Thanks for the report. Here is what I am checking in to fix this. Tom 2011-06-20 Tom Tromey * symtab.c (lookup_language_this): End loop if block is NULL. Index: symtab.c =================================================================== RCS file: /cvs/src/src/gdb/symtab.c,v retrieving revision 1.276 diff -u -r1.276 symtab.c --- symtab.c 17 Jun 2011 20:46:47 -0000 1.276 +++ symtab.c 20 Jun 2011 17:52:27 -0000 @@ -1100,7 +1100,7 @@ if (lang->la_name_of_this == NULL || block == NULL) return NULL; - while (1) + while (block) { struct symbol *sym; @@ -1108,9 +1108,11 @@ if (sym != NULL) return sym; if (BLOCK_FUNCTION (block)) - return NULL; + break; block = BLOCK_SUPERBLOCK (block); } + + return NULL; } /* Behave like lookup_symbol except that NAME is the natural name