aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/keyhandler.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-12-12 11:27:15 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-12-12 11:27:15 +0000
commitbfeddb6751d4cdb7337170176c1cb55230a95b18 (patch)
tree548a80cacfb6f1c9fe64fbc3a42c9d3dcff7bca3 /xen/common/keyhandler.c
parent73f67c0d9a0a3dff0fe27e977706492316126a1e (diff)
downloadxen-bfeddb6751d4cdb7337170176c1cb55230a95b18.tar.gz
xen-bfeddb6751d4cdb7337170176c1cb55230a95b18.tar.bz2
xen-bfeddb6751d4cdb7337170176c1cb55230a95b18.zip
Fix gdb debugging of hypervisor.
This patch: * enables the gdbstubs to properly access hypervisor memory; * prevents an assertion failure in __spurious_page_fault's call to map_domain_page if such accesses fail, by testing in_irq(); * prints some additional helpful messages; * fixes the endianness of register transfers from the gdbstubs so that gdb is much less confused. * fixes the documentation in docs/misc/crashdb.txt Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'xen/common/keyhandler.c')
-rw-r--r--xen/common/keyhandler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c
index f7756cd324..14ed246703 100644
--- a/xen/common/keyhandler.c
+++ b/xen/common/keyhandler.c
@@ -275,6 +275,7 @@ extern void perfc_reset(unsigned char key);
static void do_debug_key(unsigned char key, struct cpu_user_regs *regs)
{
+ printk("'%c' pressed -> trapping into debugger\n", key);
(void)debugger_trap_fatal(0xf001, regs);
nop(); /* Prevent the compiler doing tail call
optimisation, as that confuses xendbg a