aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ptrace.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-06-12 21:15:43 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-06-12 21:15:43 +0000
commitb43ce76c770f4c3728b6918f7d4cf175296753ff (patch)
treecdf4422e5456ef77d6d0ff16e989d4ada8ee9242 /sys/sys/ptrace.h
parentf5a077c3909208abb83ce613cc86cb76be4d13cc (diff)
downloadsrc-b43ce76c770f4c3728b6918f7d4cf175296753ff.tar.gz
src-b43ce76c770f4c3728b6918f7d4cf175296753ff.zip
Add ptrace(PT_GET_SC_ARGS) command to return debuggee' current syscall
arguments. Reviewed by: jhb (previous version) Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D11080
Notes
Notes: svn path=/head/; revision=319875
Diffstat (limited to 'sys/sys/ptrace.h')
-rw-r--r--sys/sys/ptrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index 2fa7c12b0277..903d9d83ee13 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -69,6 +69,8 @@
#define PT_GET_EVENT_MASK 25 /* get mask of optional events */
#define PT_SET_EVENT_MASK 26 /* set mask of optional events */
+#define PT_GET_SC_ARGS 27 /* fetch syscall args */
+
#define PT_GETREGS 33 /* get general-purpose registers */
#define PT_SETREGS 34 /* set general-purpose registers */
#define PT_GETFPREGS 35 /* get floating-point registers */