brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · b7f659e Raw
43 lines · c
1//===-- NativeRegisterContextFreeBSD.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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef lldb_NativeRegisterContextFreeBSD_h10#define lldb_NativeRegisterContextFreeBSD_h11 12#include "Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h"13 14namespace lldb_private {15namespace process_freebsd {16 17class NativeProcessFreeBSD;18class NativeThreadFreeBSD;19 20class NativeRegisterContextFreeBSD21    : public virtual NativeRegisterContextRegisterInfo {22public:23  // This function is implemented in the NativeRegisterContextFreeBSD_*24  // subclasses to create a new instance of the host specific25  // NativeRegisterContextFreeBSD. The implementations can't collide as only one26  // NativeRegisterContextFreeBSD_* variant should be compiled into the final27  // executable.28  static NativeRegisterContextFreeBSD *29  CreateHostNativeRegisterContextFreeBSD(const ArchSpec &target_arch,30                                         NativeThreadFreeBSD &native_thread);31  virtual llvm::Error32  CopyHardwareWatchpointsFrom(NativeRegisterContextFreeBSD &source) = 0;33 34protected:35  virtual NativeProcessFreeBSD &GetProcess();36  virtual ::pid_t GetProcessPid();37};38 39} // namespace process_freebsd40} // namespace lldb_private41 42#endif // #ifndef lldb_NativeRegisterContextFreeBSD_h43