Path: blob/main/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp
96380 views
//===-- NativeRegisterContextNetBSD.cpp -----------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "NativeRegisterContextNetBSD.h"910#include "Plugins/Process/NetBSD/NativeProcessNetBSD.h"1112#include "lldb/Host/common/NativeProcessProtocol.h"1314using namespace lldb_private;15using namespace lldb_private::process_netbsd;1617// clang-format off18#include <sys/types.h>19#include <sys/ptrace.h>20// clang-format on2122Status NativeRegisterContextNetBSD::DoRegisterSet(int ptrace_req, void *buf) {23return NativeProcessNetBSD::PtraceWrapper(ptrace_req, GetProcessPid(), buf,24m_thread.GetID());25}2627NativeProcessNetBSD &NativeRegisterContextNetBSD::GetProcess() {28return static_cast<NativeProcessNetBSD &>(m_thread.GetProcess());29}3031::pid_t NativeRegisterContextNetBSD::GetProcessPid() {32return GetProcess().GetID();33}343536