From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25537 invoked by alias); 10 Jan 2009 16:49:10 -0000 Received: (qmail 25524 invoked by uid 22791); 10 Jan 2009 16:49:09 -0000 X-Spam-Check-By: sourceware.org Received: from pool-96-233-71-199.bstnma.fios.verizon.net (HELO cgf.cx) (96.233.71.199) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 10 Jan 2009 16:48:37 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 7205813C028; Sat, 10 Jan 2009 11:48:27 -0500 (EST) Received: by ednor.cgf.cx (Postfix, from userid 201) id 631A42B385; Sat, 10 Jan 2009 11:48:27 -0500 (EST) Date: Sat, 10 Jan 2009 16:49:00 -0000 From: Christopher Faylor To: gdb-patches@sourceware.org, Joel Brobecker Subject: Re: [RFA/win32] move "mappings" array to a 32bit-specific nat file Message-ID: <20090110164827.GA24850@ednor.casa.cgf.cx> Mail-Followup-To: gdb-patches@sourceware.org, Joel Brobecker References: <20090110073151.GA29274@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090110073151.GA29274@adacore.com> User-Agent: Mutt/1.5.16 (2007-06-09) 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: 2009-01/txt/msg00232.txt.bz2 On Sat, Jan 10, 2009 at 11:31:51AM +0400, Joel Brobecker wrote: >Hello, > >This patch introduces a new file i386-windows-nat.c to hold the few >parts of win32-nat that are actually dependent on the host CPU. >So far, I only detected one item, which is the "mappings" array. > >2009-01-10 Joel Brobecker > > * win32-nat.h: New file. > * win32-nat.c (mappings): Initialize to NULL. > (win32_set_context_register_offsets): New function. > * i386-windows-nat.c: New file. > (mappings): Moved here from win32-nat.c. > (_initialize_i386_windows_nat): New function. > * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o. > * config/i386/cygwin.mh (NATDEPFILES): Likewise. > >Tested on x86-windows. >OK to apply? This is ok. cgf