Path: blob/main/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD.h
96380 views
//===-- NativeRegisterContextFreeBSD.h --------------------------*- C++ -*-===//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#ifndef lldb_NativeRegisterContextFreeBSD_h9#define lldb_NativeRegisterContextFreeBSD_h1011#include "Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h"1213namespace lldb_private {14namespace process_freebsd {1516class NativeProcessFreeBSD;17class NativeThreadFreeBSD;1819class NativeRegisterContextFreeBSD20: public virtual NativeRegisterContextRegisterInfo {21public:22// This function is implemented in the NativeRegisterContextFreeBSD_*23// subclasses to create a new instance of the host specific24// NativeRegisterContextFreeBSD. The implementations can't collide as only one25// NativeRegisterContextFreeBSD_* variant should be compiled into the final26// executable.27static NativeRegisterContextFreeBSD *28CreateHostNativeRegisterContextFreeBSD(const ArchSpec &target_arch,29NativeThreadFreeBSD &native_thread);30virtual llvm::Error31CopyHardwareWatchpointsFrom(NativeRegisterContextFreeBSD &source) = 0;3233protected:34virtual NativeProcessFreeBSD &GetProcess();35virtual ::pid_t GetProcessPid();36};3738} // namespace process_freebsd39} // namespace lldb_private4041#endif // #ifndef lldb_NativeRegisterContextFreeBSD_h424344