Re: single machine debugging?/advice for noob on OS X panic analysis
Re: single machine debugging?/advice for noob on OS X panic analysis
- Subject: Re: single machine debugging?/advice for noob on OS X panic analysis
- From: Andrew Gallatin <email@hidden>
- Date: Mon, 1 Nov 2004 15:02:16 -0500 (EST)
Eric R Johnson writes:
>
> I'd like to try to my hand at doing some panic analysis if I can get
> past the single-machine limitation. In the past, I've worked on
> Solaris boxes and was able to use adb from a terminal on a system
> core dump in the /var/crash directory. Can I configure OS X to
> savecore in a filesystem directory and use gdb on it? Maybe this
> is described somewhere and I just missed it?
>
Nope, the lack of local crashdumps is a real source of frustration for me.
Starting with 10.3, you can at least save a crashdump to a
remote machine. See TN2118:
http://developer.apple.com/technotes/tn2004/tn2118.html
for instructions on how to set the mac up.
You'll need to obtain the source to kdumpd from the network_cmds
darwin project. Its just a modified tftpd, so porting it is easy.
I run it on FreeBSD.
You should also check out
http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming/build/chapter_18_section_5.html
and http://developer.apple.com/technotes/tn2002/tn2063.html
If you download the kernel debug kit, you get a nice set of gdb macros
to do some of the cool things that adb can do (like showing all
stacks), plus better kernel (and kext) synmbol info.
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