Hi All,
For 10.11 onward, I’m trying to set up a kernel debug configuration using two machines.
I’ve followed quite a few online blog and mailing list archive from here. But I was not able to connect the target from the host.
I used one or the other boot-args on 10.11 MacBook Air as a target.
nvram boot-args="debug=0x8146 kdp_match_name=firewire fwkdp=0x8000”
nvram boot-args="debug=0x144 kdp_match_name=firewire -v” nvram boot-args="debug=0x145 kdp_match_name=firewire -v” //halt at boo-time 0x01
So it never halted. Why ???.
Now, on the host side -
$ sudo fwkdp
It gets me messages like this -
KDP Proxy and CoreDump-Receive dual mode active. Use ‘localhos’ as the KDP target in gdb. — We don’t even have gdb by default right??????
Ready.
On another terminal
$lldb (lldb) kdp-remote localhost (lldb) kip-REATTACH failed
Even if I try to issue an NMI by hitting power button on the target, and managed to freeze the system after many many tries, I can not connect to the target.
The configuration (PHY wiring ) is thunderbolt - firewire - thunderbolt.
Any help would be appreciated, specially a proven way to halt, get control, run type scenario on 10.11+
Thank you. Prokash. |