003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD
usr
/
src
/
contrib
/
llvm-project
/
lldb
/
source
/
Plugins
/
Process
/
NetBSD
/
📁
..
📄
NativeProcessNetBSD.cpp
(29.62 KB)
📄
NativeProcessNetBSD.h
(3.94 KB)
📄
NativeRegisterContextNetBSD.cpp
(1.37 KB)
📄
NativeRegisterContextNetBSD.h
(1.75 KB)
📄
NativeRegisterContextNetBSD_x86_64.cpp
(43.58 KB)
📄
NativeRegisterContextNetBSD_x86_64.h
(3.23 KB)
📄
NativeThreadNetBSD.cpp
(9.05 KB)
📄
NativeThreadNetBSD.h
(2.4 KB)
Editing: NativeRegisterContextNetBSD.cpp
//===-- NativeRegisterContextNetBSD.cpp -----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "NativeRegisterContextNetBSD.h" #include "Plugins/Process/NetBSD/NativeProcessNetBSD.h" #include "lldb/Host/common/NativeProcessProtocol.h" using namespace lldb_private; using namespace lldb_private::process_netbsd; // clang-format off #include <sys/types.h> #include <sys/ptrace.h> // clang-format on NativeRegisterContextNetBSD::NativeRegisterContextNetBSD( NativeThreadProtocol &native_thread, RegisterInfoInterface *reg_info_interface_p) : NativeRegisterContextRegisterInfo(native_thread, reg_info_interface_p) {} Status NativeRegisterContextNetBSD::DoRegisterSet(int ptrace_req, void *buf) { return NativeProcessNetBSD::PtraceWrapper(ptrace_req, GetProcessPid(), buf, m_thread.GetID()); } NativeProcessNetBSD &NativeRegisterContextNetBSD::GetProcess() { return static_cast<NativeProcessNetBSD &>(m_thread.GetProcess()); } ::pid_t NativeRegisterContextNetBSD::GetProcessPid() { return GetProcess().GetID(); }
Upload File
Create Folder