Re: Why no hwatch command in gdb ?

Frank Ch. Eigler
2011-03-10T14:47:28Z

Jan Kratochvil <jan.kratochvil@redhat.com> writes:

> [...]
> But it being discussed for upstream kernel that the DR registers access via
> PTRACE_POKEUSER is broken anyway and GDB should use the existing hardware
> watchpoints support in Linux kernel perf via some higher level interface
> (still probably through the ptrace syscall).

While a new kernel interface wouldn't be able to fabricate any
hardware-watchpoint resources after they're exhausted, a properly
designed one should be able to evaluate software watchpoints much
faster.

- FChE