Re: [RFA]: Modified Watchthreads Patch

Eli Zaretskii
2004-12-11T18:06:24Z

> Date: Sat, 11 Dec 2004 12:37:57 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: kettenis@gnu.org, jjohnstn@redhat.com, gdb-patches@sources.redhat.com
>
> For the Linux kernel, it doesn't matter what you set in that bit. It
> has to clear the registers at task switch anyway, for security reasons.

This might mean that, in practice, we will need to have some GDB code
to produce an illusion of thread-specific watchpoints on the x86.
That is, the hardware will stop the inferior whenever _any_ thread
hits the watchtpoint, and then GDB will take control, and figure out
whether it needs to stop or continue.