mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
Kernel: Reorganize ptrace implementation a bit
The generic parts of ptrace now live in Kernel/Syscalls/ptrace.cpp and the i386 specific parts are moved to Arch/i386/CPU.cpp
This commit is contained in:
parent
45231051e6
commit
f39c2b653e
8 changed files with 169 additions and 246 deletions
|
@ -34,7 +34,6 @@
|
|||
#include <Kernel/FileSystem/FileDescription.h>
|
||||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/Ptrace.h>
|
||||
#include <Kernel/RTC.h>
|
||||
#include <Kernel/SpinLock.h>
|
||||
#include <Kernel/VM/ProcessPagingScope.h>
|
||||
|
@ -246,7 +245,7 @@ ByteBuffer CoreDump::create_notes_threads_data() const
|
|||
ELF::Core::ThreadInfo info {};
|
||||
info.header.type = ELF::Core::NotesEntryHeader::Type::ThreadInfo;
|
||||
info.tid = thread.tid().value();
|
||||
Ptrace::copy_kernel_registers_into_ptrace_registers(info.regs, thread.get_register_dump_from_stack());
|
||||
copy_kernel_registers_into_ptrace_registers(info.regs, thread.get_register_dump_from_stack());
|
||||
|
||||
entry_buff.append((void*)&info, sizeof(info));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue