From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25333 invoked by alias); 7 Nov 2014 01:13:48 -0000 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 Received: (qmail 25323 invoked by uid 89); 7 Nov 2014 01:13:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f45.google.com Received: from mail-pa0-f45.google.com (HELO mail-pa0-f45.google.com) (209.85.220.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 07 Nov 2014 01:13:47 +0000 Received: by mail-pa0-f45.google.com with SMTP id lf10so2415007pab.32 for ; Thu, 06 Nov 2014 17:13:45 -0800 (PST) X-Received: by 10.68.202.1 with SMTP id ke1mr8433459pbc.60.1415322825590; Thu, 06 Nov 2014 17:13:45 -0800 (PST) Received: from seba.sebabeach.org.gmail.com (173-13-178-53-sfba.hfc.comcastbusiness.net. [173.13.178.53]) by mx.google.com with ESMTPSA id ft2sm7042259pbb.15.2014.11.06.17.13.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Nov 2014 17:13:45 -0800 (PST) From: Doug Evans To: gdb-patches@sourceware.org Subject: Re: [PATCH] solib_global_lookup: Fetch arch from objfile. References: Date: Fri, 07 Nov 2014 01:13:00 -0000 In-Reply-To: (Doug Evans's message of "Fri, 31 Oct 2014 19:27:09 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00123.txt.bz2 Doug Evans writes: > Hi. > > solib_global_lookup should be using the objfile's arch, > not fetching it from global state. > > Regression tested on amd64-linux. > > 2014-10-31 Doug Evans > > * objfiles.c (get_objfile_arch): Constify. > * objfiles.h (get_objfile_arch): Update prototype. > * solib.c (solib_global_lookup): Fetch arch from objfile, > not target_gdbarch. Committed.