LLDB
mainline
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Variables
a
b
d
e
f
g
h
i
k
l
n
p
r
s
t
v
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
Enumerator
a
c
d
e
f
g
i
k
l
n
o
p
s
t
u
v
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Related Functions
:
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
g
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
_
a
b
c
d
e
f
g
i
j
l
m
o
p
r
s
t
u
v
Enumerations
Enumerator
a
b
d
e
f
g
h
k
l
m
n
p
r
s
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Examples
llvm-project
lldb
source
Plugins
Process
NetBSD
NativeRegisterContextNetBSD.cpp
Go to the documentation of this file.
1
//===-- NativeRegisterContextNetBSD.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 "
NativeRegisterContextNetBSD.h
"
10
11
#include "
Plugins/Process/NetBSD/NativeProcessNetBSD.h
"
12
13
#include "
lldb/Host/common/NativeProcessProtocol.h
"
14
15
using namespace
lldb_private
;
16
using namespace
lldb_private::process_netbsd
;
17
18
// clang-format off
19
#include <sys/types.h>
20
#include <sys/ptrace.h>
21
// clang-format on
22
23
Status
NativeRegisterContextNetBSD::DoRegisterSet
(
int
ptrace_req,
void
*buf) {
24
return
NativeProcessNetBSD::PtraceWrapper
(ptrace_req,
GetProcessPid
(), buf,
25
m_thread
.
GetID
());
26
}
27
28
NativeProcessNetBSD
&
NativeRegisterContextNetBSD::GetProcess
() {
29
return
static_cast<
NativeProcessNetBSD
&
>
(
m_thread
.
GetProcess
());
30
}
31
32
::pid_t
NativeRegisterContextNetBSD::GetProcessPid
() {
33
return
GetProcess
().
GetID
();
34
}
NativeProcessNetBSD.h
NativeProcessProtocol.h
NativeRegisterContextNetBSD.h
lldb_private::NativeProcessProtocol::GetID
lldb::pid_t GetID() const
Definition:
NativeProcessProtocol.h:184
lldb_private::NativeRegisterContext::m_thread
NativeThreadProtocol & m_thread
Definition:
NativeRegisterContext.h:176
lldb_private::NativeThreadProtocol::GetProcess
NativeProcessProtocol & GetProcess()
Definition:
NativeThreadProtocol.h:41
lldb_private::NativeThreadProtocol::GetID
lldb::tid_t GetID() const
Definition:
NativeThreadProtocol.h:39
lldb_private::Status
An error handling class.
Definition:
Status.h:118
lldb_private::process_netbsd::NativeProcessNetBSD
Manages communication with the inferior (debugee) process.
Definition:
NativeProcessNetBSD.h:28
lldb_private::process_netbsd::NativeProcessNetBSD::PtraceWrapper
static Status PtraceWrapper(int req, lldb::pid_t pid, void *addr=nullptr, int data=0, int *result=nullptr)
Definition:
NativeProcessNetBSD.cpp:405
lldb_private::process_netbsd::NativeRegisterContextNetBSD::GetProcess
virtual NativeProcessNetBSD & GetProcess()
Definition:
NativeRegisterContextNetBSD.cpp:28
lldb_private::process_netbsd::NativeRegisterContextNetBSD::DoRegisterSet
Status DoRegisterSet(int req, void *buf)
Definition:
NativeRegisterContextNetBSD.cpp:23
lldb_private::process_netbsd::NativeRegisterContextNetBSD::GetProcessPid
virtual ::pid_t GetProcessPid()
Definition:
NativeRegisterContextNetBSD.cpp:32
lldb_private::process_netbsd
Definition:
NativeProcessNetBSD.h:20
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
Generated on Wed Mar 26 2025 12:22:22 for LLDB by
1.9.6