From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6209 invoked by alias); 15 Jan 2008 04:45:18 -0000 Received: (qmail 6154 invoked by uid 22791); 15 Jan 2008 04:45:17 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Jan 2008 04:44:56 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id m0F4irZx050650 for ; Tue, 15 Jan 2008 04:44:53 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m0F4ir3N2486436 for ; Tue, 15 Jan 2008 05:44:53 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m0F4iqwV026694 for ; Tue, 15 Jan 2008 05:44:52 +0100 Received: from bbkeks.de.ibm.com (dyn-9-152-248-46.boeblingen.de.ibm.com [9.152.248.46]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m0F4ipB4026683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Jan 2008 05:44:52 +0100 Message-ID: <478C39D3.9070403@de.ibm.com> Date: Tue, 15 Jan 2008 04:45:00 -0000 From: Markus Deuling User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: Joel Brobecker CC: GDB Patches , Ulrich Weigand Subject: Re: [rfc] Get rid of current_gdbarch in amd64 References: <4787A33F.6050305@de.ibm.com> <20080112094319.GC9143@adacore.com> In-Reply-To: <20080112094319.GC9143@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00341.txt.bz2 Joel Brobecker schrieb: >> 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 :). > Hi Joel, thanks a lot ! Regards, Markus -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com