From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17860 invoked by alias); 8 Oct 2007 08:18:52 -0000 Received: (qmail 17850 invoked by uid 22791); 8 Oct 2007 08:18:52 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate2.de.ibm.com (HELO mtagate2.de.ibm.com) (195.212.29.151) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 08 Oct 2007 08:18:49 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.13.8/8.13.8) with ESMTP id l988IjIi139228 for ; Mon, 8 Oct 2007 08:18:45 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.5) with ESMTP id l988Ijf72109508 for ; Mon, 8 Oct 2007 10:18:45 +0200 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 l988IiCo029815 for ; Mon, 8 Oct 2007 10:18:45 +0200 Received: from bbkeks.boeblingen.de.ibm.com (dyn-9-152-248-41.boeblingen.de.ibm.com [9.152.248.41]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l988Igq7029744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Oct 2007 10:18:44 +0200 Message-ID: <4709E786.1070502@de.ibm.com> Date: Mon, 08 Oct 2007 08:18:00 -0000 From: Markus Deuling User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: GDB Patches CC: Ulrich Weigand , Eli Zaretskii , Joel Brobecker , Jim Blandy , rearnsha@arm.com, Mark Kettenis Subject: [rfc] [00/16] Get rid of current gdbarch Content-Type: text/plain; charset=ISO-8859-15; 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: 2007-10/txt/msg00108.txt.bz2 Hi, a while ago I sent a first patch set to get rid of current_gdbarch. I now added some patches and deferred some other and reworked the ChangeLog entries due to feedback from you. Now that 6.7 branch was created this is a reworked patch set for current head. This patch set is another step in the direction of per-frame architecture. This set of 16 patches replaces (trivial to replace occurences of) current_gdbarch by appropriate methods like get_frame_arch or get_regcache_arch etc. Currently get_frame_arch just returns current_gdbarch but this will be replaced by later patches. I tested this patch set on x86 native and remote by compiling and running the testsuite. I also did a gdb_mbuild with all targets to make sure it compiles. Some later patches will be non-trivial and hard for me to test due to lack of those machines. It would be great if some of you could test patches for different archs like mips, arm, etc. but this will still take a while. This patch set replaces some of the current_gdbarch's in following files: * aix-thread.c * arm-tdep.c * alpha-{linux-nat,nat,tdep}.c * findvar.c * amd64-{nat,tdep}.c * i386-tdep.c * sh[64]-tdep.c * remote.c * irix5-nat.c * regcache.c * m68k{linux-nat, linux-tdep, -tdep}.c * dwarf2{loc, -frame}.c * cris-tdep.c * hppa-{hpux-nat, hpux-tdep, linux-nat, tdep}.c Is this ok? -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com