1*bee4d6efSMichał Górny //===-- NativeRegisterContextFreeBSD.cpp ----------------------------------===// 2*bee4d6efSMichał Górny // 3*bee4d6efSMichał Górny // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*bee4d6efSMichał Górny // See https://llvm.org/LICENSE.txt for license information. 5*bee4d6efSMichał Górny // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*bee4d6efSMichał Górny // 7*bee4d6efSMichał Górny //===----------------------------------------------------------------------===// 8*bee4d6efSMichał Górny 9*bee4d6efSMichał Górny #include "NativeRegisterContextFreeBSD.h" 10*bee4d6efSMichał Górny 11*bee4d6efSMichał Górny #include "Plugins/Process/FreeBSD/NativeProcessFreeBSD.h" 12*bee4d6efSMichał Górny 13*bee4d6efSMichał Górny #include "lldb/Host/common/NativeProcessProtocol.h" 14*bee4d6efSMichał Górny 15*bee4d6efSMichał Górny using namespace lldb_private; 16*bee4d6efSMichał Górny using namespace lldb_private::process_freebsd; 17*bee4d6efSMichał Górny 18*bee4d6efSMichał Górny // clang-format off 19*bee4d6efSMichał Górny #include <sys/types.h> 20*bee4d6efSMichał Górny #include <sys/ptrace.h> 21*bee4d6efSMichał Górny // clang-format on 22*bee4d6efSMichał Górny GetProcess()23*bee4d6efSMichał GórnyNativeProcessFreeBSD &NativeRegisterContextFreeBSD::GetProcess() { 24*bee4d6efSMichał Górny return static_cast<NativeProcessFreeBSD &>(m_thread.GetProcess()); 25*bee4d6efSMichał Górny } 26*bee4d6efSMichał Górny GetProcessPid()27*bee4d6efSMichał Górny::pid_t NativeRegisterContextFreeBSD::GetProcessPid() { 28*bee4d6efSMichał Górny return GetProcess().GetID(); 29*bee4d6efSMichał Górny } 30