Re: debugging on Mac OS X 10.4 (Tiger)
Re: debugging on Mac OS X 10.4 (Tiger)
- Subject: Re: debugging on Mac OS X 10.4 (Tiger)
- From: Quinn <email@hidden>
- Date: Tue, 30 Aug 2005 13:37:31 +0100
At 12:00 +0530 29/8/05, Karunakar Reddy G wrote:
3. I have custom usb driver on my Mac OS X 10.4 system, it is going
to crash after 30 hours and no display on monitor (Like Backtrace ,
program counter etc..) during crash. Which is the best debugging
method to adopt for this problem?
I'd try and get a kernel core dump.
<http://developer.apple.com/technotes/tn2004/tn2118.html>
If that fails, things get harder. You have to recompile the kernel
with serial debugging (ddb) enabled. Of course, you'll have to run
on a machine with built-in serial, which is hard to find these days.
There are instructions for this (to my extreme surprise!) in the
"Kernel Programming" book on our web site:
<http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming/build/chapter_18_section_5.html#//apple_ref/doc/uid/TP30000905-CH221-CIHDEDFH>
The instructions are a little out of date. Specifically, to enable
serial console support, you no longer need to change
"osfmk/ppc/serial_console.c". Rather, you can just change the PPC
build configuration file "xnu/osfmk/conf/MASTER.ppc" by uncommenting
the following line.
#options SERIAL_CONSOLE_DEFAULT
Good luck!
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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