Re: Setting up GDB
Re: Setting up GDB
- Subject: Re: Setting up GDB
- From: Phil Jordan <email@hidden>
- Date: Sat, 28 Mar 2015 14:48:04 +0100
com.apple.Boot.plist will not modify nvram, but you can specify boot args via NVRAM. Depending on your setup, that might be more convenient.
The only way of resuming from the kernel debugger I'm aware of is to 'continue' from lldb.
Can you ping the VM when not stuck in the debugger? If not, this might be a routing issue - you might not be able to directly access the VM from the host if you're in "NAT" mode or similar.
The other thing is you're using debug=0x01 - I suggest trying with the
DB_ARP
(0x40) bit set as well. This enables ARP (address resolution protocol) even when stopped in the kernel debugger, which might help if the VM environment is adding a hop for whatever reason. (this shouldn't make a difference if you're bridging to the the VM though)
Also helpful, especially during early boot, are the 0x2 and 0x08 bits for outputting printf and kprintf. The latter requires a serial port or firewire - adding a serial port to your VM that writes to a file should be easy to do.
phil
_______________________________________________
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