From d0bec1fd0dd63ea62214902c096f5d51c4f8e8d6 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 19 Dec 2009 20:23:04 +0100 Subject: Fix debugger trigger * i386/i386/locore.S [MACH_XEN] (RET_OFFSET): Define to 8 * xen/console.c (hypcnintr): On pound sign, call kdb_kintr instead of panicing. --- xen/console.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'xen') diff --git a/xen/console.c b/xen/console.c index c65e6d2..a289b8e 100644 --- a/xen/console.c +++ b/xen/console.c @@ -112,8 +112,11 @@ static void hypcnintr(int unit, spl_t spl, void *ret_addr, void *regs) { mb(); console->in_cons++; #ifdef MACH_KDB - if (c == (char)'£') - panic("£ pressed"); + if (c == (char)'£') { + printf("£ pressed\n"); + kdb_kintr(); + continue; + } #endif /* MACH_KDB */ if ((tp->t_state & (TS_ISOPEN|TS_WOPEN))) (*linesw[tp->t_line].l_rint)(c, tp); -- cgit v1.2.3