diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-09 01:08:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-10 11:51:45 +0200 |
commit | bee08a4b9ff0f2c269a4e3a8159b689fbb8d1ab8 (patch) | |
tree | 7963eede850be6fcf18ac8b3aae30e72a8d30407 /Libraries/LibC/sys | |
parent | 7bdf54c8372d6951409fae17dd4cec7eea6573a2 (diff) | |
download | serenity-bee08a4b9ff0f2c269a4e3a8159b689fbb8d1ab8.zip |
Kernel: More PID/TID typing
Diffstat (limited to 'Libraries/LibC/sys')
-rw-r--r-- | Libraries/LibC/sys/ptrace.cpp | 4 | ||||
-rw-r--r-- | Libraries/LibC/sys/ptrace.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/Libraries/LibC/sys/ptrace.cpp b/Libraries/LibC/sys/ptrace.cpp index fd97a0ffca..a83d8ec79b 100644 --- a/Libraries/LibC/sys/ptrace.cpp +++ b/Libraries/LibC/sys/ptrace.cpp @@ -31,7 +31,7 @@ extern "C" { -int ptrace(int request, pid_t pid, void* addr, int data) +int ptrace(int request, pid_t tid, void* addr, int data) { // PT_PEEK needs special handling since the syscall wrapper @@ -49,7 +49,7 @@ int ptrace(int request, pid_t pid, void* addr, int data) Syscall::SC_ptrace_params params { request, - pid, + tid, reinterpret_cast<u8*>(addr), data }; diff --git a/Libraries/LibC/sys/ptrace.h b/Libraries/LibC/sys/ptrace.h index b1008f62ca..edb45aeec9 100644 --- a/Libraries/LibC/sys/ptrace.h +++ b/Libraries/LibC/sys/ptrace.h @@ -40,6 +40,9 @@ __BEGIN_DECLS #define PT_POKE 8 #define PT_SETREGS 9 -int ptrace(int request, pid_t pid, void* addr, int data); +// FIXME: PID/TID ISSUE +// Affects the entirety of LibDebug and Userland/strace.cpp. +// See also Kernel/Ptrace.cpp +int ptrace(int request, pid_t tid, void* addr, int data); __END_DECLS |