summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sys
diff options
context:
space:
mode:
authorFalseHonesty <thefalsehonesty@gmail.com>2021-04-15 12:40:17 -0400
committerAndreas Kling <kling@serenityos.org>2021-04-18 17:02:40 +0200
commit7a1396f509800978d3e1cc2cbc8e043ccf758db9 (patch)
tree81a6ca3efd6190ea0932265663858f0a59fee72b /Userland/Libraries/LibC/sys
parent3123ffb19d55686809a74f4b4899e4f4bd7157e7 (diff)
downloadserenity-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.h3
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