|
Q: I need to do remote debugging on a Mac computer which is hung in the kernel. How do I interrupt this system so I can attach to it from a remote GDB kernel debugging session?A: If Mac OS X is started with the Note: On PowerPC-based portable computers such as the iBook or PowerBook, if the IMPORTANT: On Intel-based Macs, the interrupt that is generated by the power button technically is not an NMI but an ACPI System Control Interrupt (SCI). Practically speaking, this means that the power button will not interrupt an Intel-based system while interrupts are disabled. Should you find yourself in this situation, you can still potentially read useful information from the hung system using FireWire GDB as documented in the FireWire SDK. The system reads the To set the $ nvram boot-args This will display the current setting of the boot arguments. Now, add $ sudo nvram boot-args="<current settings> debug=0x4" You must restart the computer for the new settings to take effect. For other useful debug flags, please see Table 19-1 'Debugging flags' of Kernel Programming Guide: When Things Go Wrong: Debugging the Kernel. IMPORTANT: If the power button is pressed for more than five seconds, the system will immediately power off. The power button will retain this functionality until Mac OS X is restarted without the $ sudo nvram -d boot-args Note: Prior to Mac OS X 10.5, the Document Revision History
Posted: 2008-10-13 |
|