summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2023-03-01 21:28:51 +0200
committerAndreas Kling <kling@serenityos.org>2023-03-05 16:55:08 +0100
commitbe1d7c325a5e2483038f82d2303a9de3a007be5d (patch)
tree880cc173491ba86d0162958ecf110f12f0b7e481 /Userland/DevTools
parent822164a6864d4e43b09607bc787dac1622ebe6fd (diff)
downloadserenity-be1d7c325a5e2483038f82d2303a9de3a007be5d.zip
Kernel: Move process coredump metadata modification to the prctl syscall
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/UserspaceEmulator/Emulator.h1
-rw-r--r--Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp18
2 files changed, 0 insertions, 19 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator.h b/Userland/DevTools/UserspaceEmulator/Emulator.h
index c08be6e9c3..6a911466db 100644
--- a/Userland/DevTools/UserspaceEmulator/Emulator.h
+++ b/Userland/DevTools/UserspaceEmulator/Emulator.h
@@ -225,7 +225,6 @@ private:
int virt$scheduler_set_parameters(FlatPtr);
int virt$sendfd(int, int);
int virt$sendmsg(int sockfd, FlatPtr msg_addr, int flags);
- int virt$set_coredump_metadata(FlatPtr address);
int virt$set_mmap_name(FlatPtr);
int virt$set_process_name(FlatPtr buffer, int size);
int virt$set_thread_name(pid_t, FlatPtr, size_t);
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
index 93909afc52..f7ba559d3a 100644
--- a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
+++ b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
@@ -208,8 +208,6 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
return virt$sendfd(arg1, arg2);
case SC_sendmsg:
return virt$sendmsg(arg1, arg2, arg3);
- case SC_set_coredump_metadata:
- return virt$set_coredump_metadata(arg1);
case SC_set_mmap_name:
return virt$set_mmap_name(arg1);
case SC_set_process_name:
@@ -397,22 +395,6 @@ int Emulator::virt$rename(FlatPtr params_addr)
return syscall(SC_rename, &params);
}
-int Emulator::virt$set_coredump_metadata(FlatPtr params_addr)
-{
- Syscall::SC_set_coredump_metadata_params params;
- mmu().copy_from_vm(&params, params_addr, sizeof(params));
-
- auto key = mmu().copy_buffer_from_vm((FlatPtr)params.key.characters, params.key.length);
- params.key.characters = (char const*)key.data();
- params.key.length = key.size();
-
- auto value = mmu().copy_buffer_from_vm((FlatPtr)params.value.characters, params.value.length);
- params.value.characters = (char const*)value.data();
- params.value.length = value.size();
-
- return syscall(SC_set_coredump_metadata, &params);
-}
-
int Emulator::virt$dbgputstr(FlatPtr characters, int length)
{
auto buffer = mmu().copy_buffer_from_vm(characters, length);