LLDB
mainline
llvm-project
lldb
source
Plugins
Process
FreeBSD
NativeRegisterContextFreeBSD.cpp
Go to the documentation of this file.
1
//===-- NativeRegisterContextFreeBSD.cpp ----------------------------------===//
2
//
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
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
NativeRegisterContextFreeBSD.h
"
10
11
#include "
Plugins/Process/FreeBSD/NativeProcessFreeBSD.h
"
12
13
#include "
lldb/Host/common/NativeProcessProtocol.h
"
14
15
using namespace
lldb_private
;
16
using namespace
lldb_private::process_freebsd
;
17
18
// clang-format off
19
#include <sys/types.h>
20
#include <sys/ptrace.h>
21
// clang-format on
22
23
NativeProcessFreeBSD
&
NativeRegisterContextFreeBSD::GetProcess
() {
24
return
static_cast<
NativeProcessFreeBSD
&
>
(
m_thread
.
GetProcess
());
25
}
26
27
::pid_t
NativeRegisterContextFreeBSD::GetProcessPid
() {
28
return
GetProcess
().
GetID
();
29
}
lldb_private::process_freebsd::NativeProcessFreeBSD
Definition:
NativeProcessFreeBSD.h:30
lldb_private::process_freebsd::NativeRegisterContextFreeBSD::GetProcess
virtual NativeProcessFreeBSD & GetProcess()
Definition:
NativeRegisterContextFreeBSD.cpp:23
lldb_private::NativeThreadProtocol::GetProcess
NativeProcessProtocol & GetProcess()
Definition:
NativeThreadProtocol.h:41
NativeProcessFreeBSD.h
lldb_private::process_freebsd
Definition:
NativeProcessFreeBSD.h:22
lldb_private::NativeProcessProtocol::GetID
lldb::pid_t GetID() const
Definition:
NativeProcessProtocol.h:183
NativeProcessProtocol.h
lldb::pid_t
uint64_t pid_t
Definition:
lldb-types.h:85
NativeRegisterContextFreeBSD.h
lldb_private::NativeRegisterContext::m_thread
NativeThreadProtocol & m_thread
Definition:
NativeRegisterContext.h:176
lldb_private
A class that represents a running process on the host machine.
Definition:
SBCommandInterpreterRunOptions.h:16
lldb_private::process_freebsd::NativeRegisterContextFreeBSD::GetProcessPid
virtual ::pid_t GetProcessPid()
Definition:
NativeRegisterContextFreeBSD.cpp:27
Generated on Tue Jul 5 2022 19:57:30 for LLDB by
1.8.17