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/Utility/NativeRegisterContextRegisterInfo.h"
16 namespace lldb_private
{
17 namespace process_netbsd
{
19 class NativeProcessNetBSD
;
21 class NativeRegisterContextNetBSD
22 : public virtual NativeRegisterContextRegisterInfo
{
24 // This function is implemented in the NativeRegisterContextNetBSD_*
25 // subclasses to create a new instance of the host specific
26 // NativeRegisterContextNetBSD. The implementations can't collide as only one
27 // NativeRegisterContextNetBSD_* variant should be compiled into the final
29 static NativeRegisterContextNetBSD
*
30 CreateHostNativeRegisterContextNetBSD(const ArchSpec
&target_arch
,
31 NativeThreadProtocol
&native_thread
);
33 CopyHardwareWatchpointsFrom(NativeRegisterContextNetBSD
&source
) = 0;
36 Status
DoRegisterSet(int req
, void *buf
);
37 virtual NativeProcessNetBSD
&GetProcess();
38 virtual ::pid_t
GetProcessPid();
41 } // namespace process_netbsd
42 } // namespace lldb_private
44 #endif // #ifndef lldb_NativeRegisterContextNetBSD_h