From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27356 invoked by alias); 13 Nov 2008 22:45:13 -0000 Received: (qmail 27271 invoked by uid 22791); 13 Nov 2008 22:45:12 -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; Thu, 13 Nov 2008 22:44:35 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 9DB491EE6C2 for ; Thu, 13 Nov 2008 17:44:33 -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 B9XsG8W-TcGn for ; Thu, 13 Nov 2008 17:44:33 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 489501EE6D1 for ; Thu, 13 Nov 2008 17:44:33 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 14258E7ACD; Thu, 13 Nov 2008 14:44:31 -0800 (PST) Date: Thu, 13 Nov 2008 22:45:00 -0000 From: Joel Brobecker To: gdb@sourceware.org Subject: Working on the x86_64-windows native port... Message-ID: <20081113224430.GJ10146@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00108.txt.bz2 [ChrisF, I noticed you prefer if we don't Cc you in addition to reaching through the mailing-list. I work a little differently, so hopefully you'll see this message] Hello everyone, Just a quick message to say that I started looking at porting GDB to x86_64-windows. Currently, if I use a 32bit compiler and configure GDB as a i686-pc-mingw32, I get a fine debugger. Things get a little more interesting when I use a 64bit compiler and configure GDB with x86_64-pc-mingw32 [1]. Basically, the root of the issues I am seeing comes from the fact that win32-nat has some ia32-specific code, in particular in terms of the registers (see the CONTEXT structure for instance). My intentions are to split off the 32bit-specific parts to i386-windows-nat.c, and write the equivalent x86_64-windows-nat.c. I hope that's OK with everyone (Chris?). -- Joel [1]: Currently, config.guess (IIRC) doesn't like mingw64. For now, I'll keep mingw32 as meaning either 32bit or 64bit. I'll probably fix this too, but later.