Rebooting the victim machine using gdb, the answer
A week ago I posted a question regarding how to reboot a victim machine using gdb in two machine debugging mode. Here's the answer (thank you Quinn for getting me started on the right track): In your driver source code add the following procedure: void DebugRestart() { (*PE_halt_restart)(kPERestartCPU); } After you have loaded the symbols from the victim machine into gdb running on the development machine, you can then type call DebugRestart() and your machine will reboot. Alternately, you can define a reboot command in your .gdbinit file and keep the typing to a minimum. For example: define rb call DebugRestart() end This allows you to type "rb" to get the vicim machine to reboot. I hope this proves helpful to people. Tim Standing SoftRAID, LLC _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Timothy Standing