aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/debugger.h
diff options
context:
space:
mode:
authorsos22@douglas.cl.cam.ac.uk <sos22@douglas.cl.cam.ac.uk>2005-02-11 10:24:12 +0000
committersos22@douglas.cl.cam.ac.uk <sos22@douglas.cl.cam.ac.uk>2005-02-11 10:24:12 +0000
commit36a9323ec00c7cd9264a957b74fe8decb227f239 (patch)
tree1976c463ae25d48a60c67c0c13b890e2faa7a352 /xen/include/asm-x86/debugger.h
parent4e88d35838b90820c4b7bdbf7ba2704ed9cf555f (diff)
downloadxen-36a9323ec00c7cd9264a957b74fe8decb227f239.tar.gz
xen-36a9323ec00c7cd9264a957b74fe8decb227f239.tar.bz2
xen-36a9323ec00c7cd9264a957b74fe8decb227f239.zip
bitkeeper revision 1.1178 (420c87ccD2VdHFZVGUqHR4Zd2yI1mg)
After a fatal trap, we want to debug whatever caused the trap rather than the trap handler. Fix things up accordingly. Also add some documentation while I'm here. Signed-off-by: sos22@cl.cam.ac.uk.
Diffstat (limited to 'xen/include/asm-x86/debugger.h')
-rw-r--r--xen/include/asm-x86/debugger.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xen/include/asm-x86/debugger.h b/xen/include/asm-x86/debugger.h
index dc018f5bdb..62828329b8 100644
--- a/xen/include/asm-x86/debugger.h
+++ b/xen/include/asm-x86/debugger.h
@@ -17,6 +17,14 @@
* hook to drop into a debug session. It can also be used to hook off
* deliberately caused traps (which you then handle and return non-zero)
* but really these should be hooked off 'debugger_trap_entry'.
+ *
+ * 3. debugger_trap_immediate():
+ * Called if we want to drop into a debugger now. This is essentially the
+ * same as debugger_trap_fatal, except that we use the current register state
+ * rather than the state which was in effect when we took the trap.
+ * Essentially, if we're dying because of an unhandled exception, we call
+ * debugger_trap_fatal; if we're dying because of a panic() we call
+ * debugger_trap_immediate().
*/
#ifndef __X86_DEBUGGER_H__