Hello Mike,

>> OpenBSD does not allow userspace to access the hardware debug registers.

Does it mean that gdb and other debuggers can't use hardware breakpoints?
Then how do they implement memory watch?

AFAIK in other OSes they modify DR* registers using ptrace(2),
but "struct reg” from <machine/reg.h> used by PT_SETREGS  ptrace(2)
does not have field for "dr" registers.

Thanks in advance.
Ilya.

Reply via email to