Re: Cross Debugging
Re: Cross Debugging
- Subject: Re: Cross Debugging
- From: Andrew Gallatin <email@hidden>
- Date: Wed, 7 Mar 2007 08:44:40 -0500 (EST)
Michael Smith writes:
>
> On Mar 5, 2007, at 2:56 AM, Sven Mutke wrote:
>
> > My question: is there a recommended way to set up Linux or FreeBSD to
> > debug the kernel on the OSX machine?
>
> No. Unless your goal is to get hopelessly frustrated debugging gdb,
> go buy an older Mac and use it to crash-test your kernel changes.
>
Well, it wasn't *that* bad. I built the darwin gdb on FreeBSD 4.x
years ago, and I remember it being less than an afternoon's worth of
work. I've still got the binary
(http://people.freebsd.org/~gallatin/macgdb.gz), but I doubt it would
work against tiger.
However, if I was doing it today, I'd just build kdumpd on the linux
or FreeBSD host and use remote kernel crash dumps
(http://developer.apple.com/technotes/tn2004/tn2118.html)
Building it is trivial, as kdumpd seems to have been ported from
tftpd. That way, you can debug on your mac, after it has rebooted.
And there is always the possibility to run darwin inside a virtual
machine..
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden