LLDB  mainline
NativeRegisterContextNetBSD.h
Go to the documentation of this file.
1 //===-- NativeRegisterContextNetBSD.h ---------------------------*- C++ -*-===//
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 #ifndef lldb_NativeRegisterContextNetBSD_h
10 #define lldb_NativeRegisterContextNetBSD_h
11 
13 
15 
16 namespace lldb_private {
17 namespace process_netbsd {
18 
19 class NativeProcessNetBSD;
20 
22  : public virtual NativeRegisterContextRegisterInfo {
23 public:
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
28  // executable.
31  NativeThreadProtocol &native_thread);
32  virtual llvm::Error
34 
35 protected:
36  Status DoRegisterSet(int req, void *buf);
39 };
40 
41 } // namespace process_netbsd
42 } // namespace lldb_private
43 
44 #endif // #ifndef lldb_NativeRegisterContextNetBSD_h
lldb_private::ArchSpec
Definition: ArchSpec.h:33
lldb_private::NativeThreadProtocol
Definition: NativeThreadProtocol.h:20
lldb_private::process_netbsd::NativeRegisterContextNetBSD::CopyHardwareWatchpointsFrom
virtual llvm::Error CopyHardwareWatchpointsFrom(NativeRegisterContextNetBSD &source)=0
lldb_private::process_netbsd::NativeProcessNetBSD
Definition: NativeProcessNetBSD.h:28
lldb_private::process_netbsd::NativeRegisterContextNetBSD::GetProcessPid
virtual ::pid_t GetProcessPid()
Definition: NativeRegisterContextNetBSD.cpp:32
lldb_private::process_netbsd::NativeRegisterContextNetBSD
Definition: NativeRegisterContextNetBSD.h:21
NativeRegisterContextRegisterInfo.h
lldb_private::process_netbsd::NativeRegisterContextNetBSD::GetProcess
virtual NativeProcessNetBSD & GetProcess()
Definition: NativeRegisterContextNetBSD.cpp:28
lldb_private::Status
Definition: Status.h:44
lldb_private::NativeRegisterContextRegisterInfo
Definition: NativeRegisterContextRegisterInfo.h:18
NativeThreadProtocol.h
lldb::pid_t
uint64_t pid_t
Definition: lldb-types.h:85
lldb_private::process_netbsd::NativeRegisterContextNetBSD::CreateHostNativeRegisterContextNetBSD
static NativeRegisterContextNetBSD * CreateHostNativeRegisterContextNetBSD(const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
lldb_private::process_netbsd::NativeRegisterContextNetBSD::DoRegisterSet
Status DoRegisterSet(int req, void *buf)
Definition: NativeRegisterContextNetBSD.cpp:23
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
Error
llvm::Error Error
Definition: UdtRecordCompleter.cpp:29