1 //===-- NativeRegisterContextNetBSD.h ---------------------------*- C++ -*-===//
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 #ifndef lldb_NativeRegisterContextNetBSD_h
10 #define lldb_NativeRegisterContextNetBSD_h
12 #include "lldb/Host/common/NativeThreadProtocol.h"
14 #include "Plugins/Process/NetBSD/NativeProcessNetBSD.h"
15 #include "Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h"
17 namespace lldb_private {
18 namespace process_netbsd {
20 class NativeRegisterContextNetBSD : public NativeRegisterContextRegisterInfo {
22 NativeRegisterContextNetBSD(NativeThreadProtocol &native_thread,
23 RegisterInfoInterface *reg_info_interface_p);
25 // This function is implemented in the NativeRegisterContextNetBSD_*
26 // subclasses to create a new instance of the host specific
27 // NativeRegisterContextNetBSD. The implementations can't collide as only one
28 // NativeRegisterContextNetBSD_* variant should be compiled into the final
30 static NativeRegisterContextNetBSD *
31 CreateHostNativeRegisterContextNetBSD(const ArchSpec &target_arch,
32 NativeThreadProtocol &native_thread);
35 Status DoRegisterSet(int req, void *buf);
36 virtual NativeProcessNetBSD &GetProcess();
37 virtual ::pid_t GetProcessPid();
40 } // namespace process_netbsd
41 } // namespace lldb_private
43 #endif // #ifndef lldb_NativeRegisterContextNetBSD_h