Re: 2 debugging questions
Re: 2 debugging questions
- Subject: Re: 2 debugging questions
- From: Andrew Gallatin <email@hidden>
- Date: Mon, 15 Dec 2003 10:25:02 -0500 (EST)
Marek Kozubal writes:
>
>
> 2) Can I reboot the (crashed) box via remote gdb? How?
>
> Walking down the hall to reboot the box is good excercise, but only
>
> up to a point ;)
>
>
Go to lists.apple.com and look at the archives for this list and do a
>
search on "Rebooting the victim machine using gdb, the answer".
Thanks, but it doesn't work for me:
(gdb) l mx_reboot
539 #include <IOKit/IOPlatformExpert.h>
540 void mx_reboot(void);
541
542 void
543 mx_reboot()
544 {
545 (*PE_halt_restart)(kPERestartCPU);
546 }
547
548
(gdb) call mx_reboot()
warning: Cannot insert breakpoint 0; disabling it.
Error accessing memory address 0xcaf3578: Unknown error: -1
Maybe this is because I'm using a cross-compiled gdb on a different
platform.
Drew
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.