Re: Possible bug in arch/i386/kernel/process.c for reloading of debug registers (DRx)?

From: Andi Kleen (
Date: Sat Feb 08 2003 - 19:56:19 EST

> - However, DR6 bit B0 is now set.

You cannot detect it. Linux offers no way to read DR6 from user space
as far as I can see. The only way to handle break points is to catch
the signals caused by the debug exceptions.

Yo access debug registers you need to use ptrace from another process.
ptrace only ever returns cached values in tsk->thread, but the register is
never stored in there.

So in fact __switch_to could drop the loaddebug(next, 6) because it is

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:20 EST