From owner-freebsd-current Wed Jun 9 23:22:51 1999 Delivered-To: freebsd-current@freebsd.org Received: from jason.argos.org (a1-3b169.neo.rr.com [24.93.181.169]) by hub.freebsd.org (Postfix) with ESMTP id 4AFB514E9B; Wed, 9 Jun 1999 23:22:48 -0700 (PDT) (envelope-from mike@argos.org) Received: from localhost (mike@localhost) by jason.argos.org (8.9.1/8.9.1) with ESMTP id CAA10225; Thu, 10 Jun 1999 02:27:30 -0400 Date: Thu, 10 Jun 1999 02:27:30 -0400 (EDT) From: Mike Nowlin To: Phil Homewood Cc: freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: ENABLE_SERIAL_BREAK_KEY...or something? In-Reply-To: <19990610154124.F22693@mincom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > key to drop to the debugger? Say have it so that if a keystroke of ~b (as > > Would be most excellent if this could be done. A couple of boxen I > have here have serial consoles attached to other machines which > do a very good simulation of a break when the controlling process > leaves them. Dropping to DDB every time you reboot the other machine > is, uh, less than desirable behaviour. :-) Agreed, but this may be quite a project... doing a "cd ~bob" would be fun. :) You would pretty much have to implement some timing requirements, but I imagine that it could bulk up that section of the kernel pretty easily. One thing that might help (assuming you CAN generate a break) is to watch DCD (or some other control line(s)). Generally, when a break is sent intentionally, the DCD line is active -- when the kernel detects a break, wait until after it's finished, then check DCD. If it's high, drop to debugger. If it's low, somebody either turned the terminal off or dropped outta kermit. (I have the displeasure of maintaining an AIX box that does something similar to this. Before the upgrade that fixed this problem, turning off the serial console brought the whole machine down.) --Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message