Enter DDB on cntl-alt-esc (a'la i386).
This commit is contained in:
parent
ef86b9a61d
commit
d65a5e7fd2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pckbd.c,v 1.19 1997/09/02 13:19:00 thorpej Exp $ */
|
||||
/* $NetBSD: pckbd.c,v 1.20 1997/09/25 02:42:47 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995 Charles Hannum. All rights reserved.
|
||||
|
@ -45,7 +45,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.19 1997/09/02 13:19:00 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.20 1997/09/25 02:42:47 thorpej Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
@ -740,6 +740,17 @@ pckbd_translate(dev, c)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef DDB
|
||||
/*
|
||||
* Check for cntl-alt-esc.
|
||||
*/
|
||||
if ((dt == 1) && ((shift_state & (CTL | ALT)) == (CTL | ALT))
|
||||
/* XXX && we're the console */) {
|
||||
Debugger();
|
||||
dt |= 0x80; /* discard esc (ddb discarded ctl-alt) */
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Check for make/break.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue