Re: Debug related setup
Re: Debug related setup
- Subject: Re: Debug related setup
- From: Brian Bechtel <email@hidden>
- Date: Sat, 02 Jul 2016 21:30:44 -0700
(sorry, hit send accidentally).
For coredumps,
* you need debug flags to contain 0xd44 (or some smaller subset, but that's what I use, so I don't bother to go to a smaller set of flags)
* you need to specify the IP address of the server where you want to save the coredump in the "_panicd_ip" boot-args variable. If you are using the thunderbolt->firewire connection for two machine debugging, the coredump is always saved locally, but you still need to specify a _panicd_ip, even if it's not used.
sudo nvram boot-args="debug=0xd44 kdp_match_name=firewire fwkdp=0x8000 _panicd_ip=1.2.3.4"
sudo shutdown -r now
On the host, you need to issue these commands
sudo mkdir /PanicDumps
sudo chown root:wheel /PanicDumps
sudo chmod 1777 /PanicDumps
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.kdumpd.plist
this sets up the kdumpd daemon to write coredump files to /PanicDumps.
Firewire behaves slightly differently; it writes the file to the home directory of the account which is doing the debugging. Mostly. Just look for the file.
_______________________________________________
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