1 //===-- NativeRegisterContextFreeBSD.cpp ----------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "NativeRegisterContextFreeBSD.h"
11 #include "Plugins/Process/FreeBSD/NativeProcessFreeBSD.h"
13 #include "lldb/Host/common/NativeProcessProtocol.h"
15 using namespace lldb_private
;
16 using namespace lldb_private::process_freebsd
;
19 #include <sys/types.h>
20 #include <sys/ptrace.h>
23 NativeProcessFreeBSD
&NativeRegisterContextFreeBSD::GetProcess() {
24 return static_cast<NativeProcessFreeBSD
&>(m_thread
.GetProcess());
27 ::pid_t
NativeRegisterContextFreeBSD::GetProcessPid() {
28 return GetProcess().GetID();