summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/ptrace_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/amd64/ptrace_machdep.c')
-rw-r--r--sys/amd64/amd64/ptrace_machdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/amd64/amd64/ptrace_machdep.c b/sys/amd64/amd64/ptrace_machdep.c
index 8eea132..8236321 100644
--- a/sys/amd64/amd64/ptrace_machdep.c
+++ b/sys/amd64/amd64/ptrace_machdep.c
@@ -126,6 +126,12 @@ cpu_ptrace(struct thread *td, int req, void *addr, int data)
return (cpu32_ptrace(td, req, addr, data));
#endif
+ /* Support old values of PT_GETXSTATE and PT_SETXSTATE. */
+ if (req == PT_FIRSTMACH + 0)
+ req = PT_GETXSTATE;
+ if (req == PT_FIRSTMACH + 1)
+ req = PT_SETXSTATE;
+
switch (req) {
case PT_GETXSTATE:
case PT_SETXSTATE:
OpenPOWER on IntegriCloud