From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25362 invoked by alias); 12 Jan 2008 09:44:22 -0000 Received: (qmail 25353 invoked by uid 22791); 12 Jan 2008 09:44:22 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 12 Jan 2008 09:44:04 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 6AE942A975A; Sat, 12 Jan 2008 04:44:02 -0500 (EST) 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 aiHzcwh2IyTM; Sat, 12 Jan 2008 04:44:02 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 974C72A9715; Sat, 12 Jan 2008 04:44:01 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 497B2E7ACB; Sat, 12 Jan 2008 01:43:19 -0800 (PST) Date: Sat, 12 Jan 2008 09:44:00 -0000 From: Joel Brobecker To: Markus Deuling Cc: GDB Patches , Ulrich Weigand Subject: Re: [rfc] Get rid of current_gdbarch in amd64 Message-ID: <20080112094319.GC9143@adacore.com> References: <4787A33F.6050305@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4787A33F.6050305@de.ibm.com> User-Agent: Mutt/1.4.2.2i 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: 2008-01/txt/msg00302.txt.bz2 > I dont have access to an AMD64 machine. Maybe someone from this list has > and could do a testrun > with this patch to see if there are regressions? Thanks a lot. [...] > ChangeLog: > > * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as > parameter. > * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise. > > (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace > current_gdbarch by gdbarch. Update caller. > > * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers) > (amd64_linux_store_inferior_registers): Use get_regcache_arch to get > at > the current architecture. Update calls of > amd64_native_gregset_supplies_p. > * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers) > (amd64bsd_store_inferior_registers): Likewise. Tested on x86_64-linux, no regression :). -- Joel