From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 17:35:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30ED516A4CE for ; Wed, 1 Sep 2004 17:35:44 +0000 (GMT) Received: from M4.sparta.com (M4.sparta.com [157.185.61.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04AA243D53 for ; Wed, 1 Sep 2004 17:35:43 +0000 (GMT) (envelope-from deker@slackdot.org) Received: from Beta5.sparta.com (beta5.sparta.com [157.185.63.21]) by M4.sparta.com (8.12.8/8.12.8) with ESMTP id i81HZfUt029046; Wed, 1 Sep 2004 12:35:42 -0500 Received: from columbia.sparta.com (lilo.columbia.SPARTA.COM [157.185.80.32]) by Beta5.sparta.com (8.12.11/8.12.11) with ESMTP id i81HZflC003458; Wed, 1 Sep 2004 12:35:42 -0500 Received: from [157.185.80.108] (7lyxg41.columbia.sparta.com [157.185.80.108]) i81HZefq027186; Wed, 1 Sep 2004 13:35:40 -0400 (EDT) Message-ID: <41360867.9070807@slackdot.org> Date: Wed, 01 Sep 2004 13:35:35 -0400 From: Rob Deker User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John-Mark Gurney References: <4135ED10.3020505@slackdot.org> <20040901171552.GE29902@funkthat.com> In-Reply-To: <20040901171552.GE29902@funkthat.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: The continued remote debugging saga... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 17:35:44 -0000 -----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-----