Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151686577
D26815.id78317.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26815.id78317.diff
View Options
Index: sys/amd64/linux/linux_ptrace.c
===================================================================
--- sys/amd64/linux/linux_ptrace.c
+++ sys/amd64/linux/linux_ptrace.c
@@ -71,6 +71,7 @@
#define LINUX_PTRACE_GETSIGINFO 0x4202
#define LINUX_PTRACE_GETREGSET 0x4204
#define LINUX_PTRACE_SEIZE 0x4206
+#define LINUX_PTRACE_GET_SYSCALL_INFO 0x420e
#define LINUX_PTRACE_EVENT_EXIT 6
@@ -557,6 +558,14 @@
return (EINVAL);
}
+static int
+linux_ptrace_get_syscall_info(struct thread *td, pid_t pid, l_ulong addr, l_ulong data)
+{
+
+ linux_msg(td, "PTRACE_GET_SYSCALL_INFO not implemented; returning EINVAL");
+ return (EINVAL);
+}
+
int
linux_ptrace(struct thread *td, struct linux_ptrace_args *uap)
{
@@ -641,6 +650,9 @@
break;
case LINUX_PTRACE_SEIZE:
error = linux_ptrace_seize(td, pid, uap->addr, uap->data);
+ break;
+ case LINUX_PTRACE_GET_SYSCALL_INFO:
+ error = linux_ptrace_get_syscall_info(td, pid, uap->addr, uap->data);
break;
default:
linux_msg(td, "ptrace(%ld, ...) not implemented; "
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 12:39 AM (9 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31257607
Default Alt Text
D26815.id78317.diff (1 KB)
Attached To
Mode
D26815: Slightly improve linux ptrace debug for PTRACE_GET_SYSCALL_INFO
Attached
Detach File
Event Timeline
Log In to Comment