diff options
author | FalseHonesty <thefalsehonesty@gmail.com> | 2021-04-15 12:40:17 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-18 17:02:40 +0200 |
commit | 7a1396f509800978d3e1cc2cbc8e043ccf758db9 (patch) | |
tree | 81a6ca3efd6190ea0932265663858f0a59fee72b /Userland/Libraries/LibC/sys | |
parent | 3123ffb19d55686809a74f4b4899e4f4bd7157e7 (diff) | |
download | serenity-7a1396f509800978d3e1cc2cbc8e043ccf758db9.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibC/sys')
-rw-r--r-- | Userland/Libraries/LibC/sys/ptrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/sys/ptrace.h b/Userland/Libraries/LibC/sys/ptrace.h index ad5de3fb6e..3caadac462 100644 --- a/Userland/Libraries/LibC/sys/ptrace.h +++ b/Userland/Libraries/LibC/sys/ptrace.h @@ -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 |