1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:47:34 +00:00

LibDebug: Implement ability to set watchpoints

Now we can set hardware watchpoints for our variables! :^)
These watchpoints will be automatically removed when
they go out of scope.
This commit is contained in:
FalseHonesty 2021-04-15 12:40:17 -04:00 committed by Andreas Kling
parent 3123ffb19d
commit 7a1396f509
3 changed files with 145 additions and 0 deletions

View file

@ -42,6 +42,9 @@ __BEGIN_DECLS
#define PT_POKEDEBUG 10
#define PT_PEEKDEBUG 11
#define DEBUG_STATUS_REGISTER 6
#define DEBUG_CONTROL_REGISTER 7
// FIXME: PID/TID ISSUE
// Affects the entirety of LibDebug and Userland/strace.cpp.
// See also Kernel/Ptrace.cpp