Date: Wed, 01 Sep 2004 13:35:35 -0400 From: Rob Deker <deker@slackdot.org> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: The continued remote debugging saga... Message-ID: <41360867.9070807@slackdot.org> In-Reply-To: <20040901171552.GE29902@funkthat.com> References: <4135ED10.3020505@slackdot.org> <20040901171552.GE29902@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John-Mark Gurney wrote: | If you are able to be at a command line, you could try: sysctl | debug.kdb.current=ddb | If I was able to get to a command line, I'd just use shutdown :) Could I build up the appropriate struct in gdb and use the sysctl() system call though? |> This works SOMETIMES, but for example, the machine is at home and |> wedged now mid-shutdown (seems I may have screwed up an mbuf |> pointer and bufdaemon is upset about it). Any suggestions are |> welcome :) | | | you could also try: call reset or: print reset() | I think I looked for this and gdb didn't know of a 'reset' symbol. I found reboot() which takes a uthreads pointer and an args pointer, and boot() which just takes an int of boot flags (which was the 0 that I shoved into eax for RB_AUTBOOT). Thanks, - -d -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBNghniaU9aKbHcJcRAqOjAJwNLcHOss8EiJkHP/+oapLXTnDoXgCfbBdU bEL1QrbSeojs448fuHPjG0Q= =wg2s -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41360867.9070807>