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
16namespace lldb_private {
17namespace process_netbsd {
18
19class NativeProcessNetBSD;
20
22 : public virtual NativeRegisterContextRegisterInfo {
23public:
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
35protected:
36 Status DoRegisterSet(int req, void *buf);
38 virtual ::pid_t GetProcessPid();
39};
40
41} // namespace process_netbsd
42} // namespace lldb_private
43
44#endif // #ifndef lldb_NativeRegisterContextNetBSD_h
An architecture specification class.
Definition: ArchSpec.h:31
An error handling class.
Definition: Status.h:44
Manages communication with the inferior (debugee) process.
static NativeRegisterContextNetBSD * CreateHostNativeRegisterContextNetBSD(const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
virtual llvm::Error CopyHardwareWatchpointsFrom(NativeRegisterContextNetBSD &source)=0
A class that represents a running process on the host machine.