From: "Michael D. Crawford" <crawford@goingware.com>
To: gdb@sources.redhat.com
Subject: OS X cross-debugging from Linux?
Date: Thu, 23 May 2002 17:35:00 -0000 [thread overview]
Message-ID: <3CED8AF3.3050808@goingware.com> (raw)
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.
next reply other threads:[~2002-05-24 0:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-23 17:35 Michael D. Crawford [this message]
2002-05-24 17:37 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CED8AF3.3050808@goingware.com \
--to=crawford@goingware.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox