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

From: Andi Kleen (ak@suse.de)
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
useless.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



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