From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16806 invoked by alias); 15 May 2012 13:09:17 -0000 Received: (qmail 16734 invoked by uid 22791); 15 May 2012 13:09:15 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_BJ X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 May 2012 13:09:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 817801C6568; Tue, 15 May 2012 09:09:01 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OVM1T51zLThH; Tue, 15 May 2012 09:09:01 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 4C1E11C61ED; Tue, 15 May 2012 09:09:01 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id EE257145616; Tue, 15 May 2012 06:08:51 -0700 (PDT) Date: Tue, 15 May 2012 13:09:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: Pedro Alves , Tom Tromey , gdb-patches@sourceware.org Subject: Re: Regression for gdb.fortran/library-module.exp [Re: [RFA] choose symbol from given block's objfile first.] Message-ID: <20120515130851.GP10253@adacore.com> References: <1336430581-11262-1-git-send-email-brobecker@adacore.com> <874nrqvbeh.fsf@fleche.redhat.com> <20120509190529.GI15555@adacore.com> <20120511072606.GA25458@host2.jankratochvil.net> <20120514143927.GB10253@adacore.com> <20120514145151.GA30451@host2.jankratochvil.net> <4FB1459E.60208@redhat.com> <20120514175913.GM10253@adacore.com> <20120514180624.GA16368@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120514180624.GA16368@host2.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2012-05/txt/msg00562.txt.bz2 > On Mon, 14 May 2012 19:59:13 +0200, Joel Brobecker wrote: > > So enhance elf_lookup_lib_symbol to search the main objfile? > > When we are already fixing it we should already fix it right. > Therefore to have the right lookup order even between shared libraries. ... but at the same time taking into account the context from which the user made the request... I want to make sure that we don't get carried away too much and forget to include plans to fix the regression in our immediate future. For instance, Pedro suggested that we should search the main objfile first, but that this should be target dependent. Thinking about it, he's right, of course. But coding it right is probably going to take some thinking. On the other hand, implementing this approach for all targets seems easy enough, and would buy us some time. -- Joel