From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6965 invoked by alias); 3 Aug 2007 12:11:45 -0000 Received: (qmail 6857 invoked by uid 22791); 3 Aug 2007 12:11:37 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate5.de.ibm.com (HELO mtagate5.de.ibm.com) (195.212.29.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Aug 2007 12:11:32 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate5.de.ibm.com (8.13.8/8.13.8) with ESMTP id l73CBTOS417632 for ; Fri, 3 Aug 2007 12:11:29 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.4) with ESMTP id l73CBTq42322644 for ; Fri, 3 Aug 2007 14:11:29 +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 l73CBPe3019646 for ; Fri, 3 Aug 2007 14:11:26 +0200 Received: from bbkeks.boeblingen.de.ibm.com (dyn-9-152-248-39.boeblingen.de.ibm.com [9.152.248.39]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l73CBO1L019625 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Aug 2007 14:11:25 +0200 Message-ID: <46B31B13.4020304@de.ibm.com> Date: Fri, 03 Aug 2007 12:11:00 -0000 From: Markus Deuling User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: GDB Patches , Ulrich Weigand Subject: [rfc] [00/12] 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-08/txt/msg00034.txt.bz2 Hi, this and the next patch sets are another step in the direction of per-frame architecture. To achieve that goal GDB needs to get rid of the global variable current_gdbarch. This set of 12 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), ppc and ppc64 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 * frame.c * i386-tdep.c * mips-tdep.c * ppc-linux-nat.c * rs6000-tdep.c * sh[64]-tdep.c * xtensa-tdep.c * remote.c Is this ok? -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com