The continued remote debugging saga...
Rob Deker
deker at slackdot.org
Wed Sep 1 10:35:44 PDT 2004
-----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-----
More information about the freebsd-hackers
mailing list