On Thu, May 10, 2018 at 5:06 PM, IL Ka <kazakevichi...@gmail.com> wrote: > > >> OpenBSD does not allow userspace to access the hardware debug registers. > > Does it mean that gdb and other debuggers can't use hardware breakpoints? >
Correct: gdb is a userspace program, so it can't set hardware breakpoints on x86. (I don't know whether hardware breakpoints are supported on any of the other CPUs supported by OpenBSD) > Then how do they implement memory watch? > Got me, but even the ancient, in-tree gdb is able to do so. Have you consulted the gdb source? Philip Guenther