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