Commit a97f3337 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: Allow a kernel debugger to hide single steps in more cases.

Allow a kernel debugger to hide single steps in more cases.

Apparently helps the kgdb people.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 90e2105e
......@@ -691,7 +691,9 @@ asmlinkage void *do_debug(struct pt_regs * regs, unsigned long error_code)
tsk->thread.debugreg6 = condition;
/* Mask out spurious TF errors due to lazy TF clearing */
if (condition & DR_STEP) {
if ((condition & DR_STEP) &&
(notify_die(DIE_DEBUGSTEP, "debugstep", regs, condition,
1, SIGTRAP) != NOTIFY_STOP)) {
/*
* The TF error should be masked out only if the current
* process is not traced and if the TRAP flag has been set
......
......@@ -23,6 +23,7 @@ enum die_val {
DIE_OOPS = 1,
DIE_INT3,
DIE_DEBUG,
DIE_DEBUGSTEP,
DIE_PANIC,
DIE_NMI,
DIE_DIE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment