From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1643 invoked by alias); 12 Oct 2007 17:38:34 -0000 Received: (qmail 1633 invoked by uid 22791); 12 Oct 2007 17:38:33 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.172) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 Oct 2007 17:38:24 +0000 Received: by ug-out-1314.google.com with SMTP id o2so719353uge for ; Fri, 12 Oct 2007 10:38:22 -0700 (PDT) Received: by 10.66.219.11 with SMTP id r11mr4591265ugg.1192210701457; Fri, 12 Oct 2007 10:38:21 -0700 (PDT) Received: from ?88.210.75.231? ( [88.210.75.231]) by mx.google.com with ESMTPS id m4sm799335ugc.2007.10.12.10.38.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Oct 2007 10:38:14 -0700 (PDT) Message-ID: <470FB0E6.8030408@portugalmail.pt> Date: Fri, 12 Oct 2007 17:38:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Joel Brobecker CC: Eli Zaretskii , Daniel Jacobowitz , Kai.Tietz@onevision.com, gdb@sourceware.org Subject: Re: Support of gdb for Windows 64 native systems References: <20071011142348.GA18239@caradoc.them.org> <20071011145549.GA19918@caradoc.them.org> <20071012161132.GE4044@adacore.com> In-Reply-To: <20071012161132.GE4044@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2007-10/txt/msg00087.txt.bz2 Thinking only of the target part of the story, and assuming the debug API is similar, the x64/i386 support in GDB could be done similarly to how x86/arm is split in gdbserver. It would probably be much easier to start with porting gdbserver and cross-debugging. gdbserver already supports x86 mingw. Take a look at win32-low.c, win32-i386-low.c and win32-arm-low.c in gdb/gdbserver/. On the gdb side, you would need at least a gdb/x64-(mingw|win32)-tdep.c and/or a i386-(mingw|win32)-tdep.c. Cheers, Pedro Alves