From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15035 invoked by alias); 24 May 2002 00:35:10 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15007 invoked from network); 24 May 2002 00:35:07 -0000 Received: from unknown (HELO dolomite.mint.net) (216.227.128.33) by sources.redhat.com with SMTP; 24 May 2002 00:35:07 -0000 Received: from goingware.com (me-rockland-dial-150.mint.adelphia.net [216.227.145.170]) by dolomite.mint.net (8.9.3/8.9.3) with ESMTP id UAA13365 for ; Thu, 23 May 2002 20:35:05 -0400 Message-ID: <3CED8AF3.3050808@goingware.com> Date: Thu, 23 May 2002 17:35:00 -0000 From: "Michael D. Crawford" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020412 Debian/0.9.9-6 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: OS X cross-debugging from Linux? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00265.txt.bz2 Greetings, I have just joined the list. I want to develop a Mac OS X device driver. One can debug the OS X kernel using GDB as a cross-debugger between two machines over ethernet. Apple has a page that describes how to do it here: http://www.opensource.apple.com/projects/documentation/howto/html/KEXT_Tutorials/HelloDebugger.html However, this assumes both machines are running OS X and using the version of GDB that Apple provides. I'm going to be away visiting relatives for about a month and it wouldn't be convenient for me to take my desktop Mac. I have an x86 laptop that runs Linux. Could I have GDB run on my linux laptop and debug OS X running on an iBook? I asked about this on the darwin-drivers mailing list and someone thought that it would be possible, but I would need to make a special build of GDB because the main GDB distribution hasn't picked up all of Apple's customizations. Apparently there is a special protocol as well as support for the mach-o binary format that needs to be enabled. I assume I can get the source to Apple's GDB from its website, but maybe there are issues with getting it to work on Linux. For example, it may care about the byte order (Macs run big-endian PowerPC processors) or about the API used to talk over the network (OS X has Berkeley sockets but I don't know if there's anything weird about them). Any help is appreciated. My x86 laptop runs Slackware 8. If I can get this to work I will write up a HOWTO and post it on the web. Thanks, Michael D. Crawford GoingWare Inc. - Expert Software Development and Consulting http://www.goingware.com/ crawford@goingware.com Subscribe to the GoingWare Newsletter at http://www.goingware.com/newsletter/ Tilting at Windmills for a Better Tomorrow.