From owner-freebsd-hackers Sat Sep 7 3:34:26 2002 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 8849A37B400 for ; Sat, 7 Sep 2002 03:34:24 -0700 (PDT) Received: from relay01.cablecom.net (relay01.cablecom.net [62.2.33.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9234143E65 for ; Sat, 7 Sep 2002 03:34:23 -0700 (PDT) (envelope-from hanspeter_roth@hotmail.com) Received: from gicco.cablecom.ch (dclient80-218-73-118.hispeed.ch [80.218.73.118]) by relay01.cablecom.net (8.12.5/8.12.5/SOL/AWF/MXRELAY/20020820) with ESMTP id g87AYL20082285 for ; Sat, 7 Sep 2002 12:34:21 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Received: (from idefix@localhost) by gicco.cablecom.ch (8.11.6/8.11.6) id g87AYLQ00903 for freebsd-hackers@FreeBSD.ORG; Sat, 7 Sep 2002 12:34:21 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Date: Sat, 7 Sep 2002 12:34:21 +0200 From: Hanspeter Roth To: freebsd-hackers@FreeBSD.ORG Subject: Re: interrupting the remote kernel Message-ID: <20020907123421.A827@gicco.cablecom.ch> Reply-To: freebsd-hackers@FreeBSD.ORG Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: <20020906220033.A1830@gicco.cablecom.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from nate@root.org on Fri, Sep 06, 2002 at 05:17:07PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sep 06 at 17:17, Nate Lawson spoke: > You can do this by connecting a second serial cable for a console between > your host and target or by using the remotechat option and a single cable. > Once you have the serial console, option ALT_BREAK_TO_DEBUGGER allows you > to initiate a break using your terminal emulator's "send break" command. My remote host is a laptop with only one sio port. So if it would be possible with a single serial connection I'd appreciate it. I have played a little with remotechat but with strange results. If I set remotechat before `target remote /dev/cuaa0' the latter fails. If I set remotechat after `target remote' but before continuing ctl-alt-esc on the target host doesn't work anymore. Only garbage appears in the remote gdb. Also ctl-c in gdb doesn't achieve anything. Only after three ctl-cs I can detach gdb. I have now also added option ALT_BREAK_TO_DEBUGGER but that doesn't help either nor does the sequence CR~^b in gdb. (I want to interrupt the target host while X is active.) > If the hang is not a system hang, the console break will have an effect. > But if the kernel is so hung that the keyboard doesn't work, the remote > serial console will not do you any better. In this case you need a box > with a real console (i.e. Sun). I won't by a Sun. I'm just hoping the hang is not a system hang. :-) -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message