mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 01:04:38 +03:00
25 lines
461 B
C++
25 lines
461 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Arch/x86/RegisterState.h>
|
|
#include <Kernel/ThreadTracer.h>
|
|
|
|
namespace Kernel {
|
|
|
|
ThreadTracer::ThreadTracer(ProcessID tracer_pid)
|
|
: m_tracer_pid(tracer_pid)
|
|
{
|
|
}
|
|
|
|
void ThreadTracer::set_regs(const RegisterState& regs)
|
|
{
|
|
PtraceRegisters r {};
|
|
copy_kernel_registers_into_ptrace_registers(r, regs);
|
|
m_regs = r;
|
|
}
|
|
|
|
}
|