9#if defined(__i386__) || defined(__x86_64__)
11#ifndef lldb_NativeRegisterContextNetBSD_x86_64_h
12#define lldb_NativeRegisterContextNetBSD_x86_64_h
17#include <sys/ptrace.h>
18#include <machine/reg.h>
30namespace process_netbsd {
32class NativeProcessNetBSD;
34class NativeRegisterContextNetBSD_x86_64
35 :
public NativeRegisterContextNetBSD,
36 public NativeRegisterContextDBReg_x86 {
38 NativeRegisterContextNetBSD_x86_64(
const ArchSpec &target_arch,
39 NativeThreadProtocol &native_thread);
40 uint32_t GetRegisterSetCount()
const override;
42 const RegisterSet *GetRegisterSet(uint32_t set_index)
const override;
44 Status ReadRegister(
const RegisterInfo *reg_info,
45 RegisterValue ®_value)
override;
47 Status WriteRegister(
const RegisterInfo *reg_info,
48 const RegisterValue ®_value)
override;
55 CopyHardwareWatchpointsFrom(NativeRegisterContextNetBSD &source)
override;
63 MaxRegularRegSet = DBRegSet,
66 MaxRegSet = MPXRegSet,
70 std::array<uint8_t,
sizeof(
struct reg)> m_gpr;
71 std::array<uint8_t,
sizeof(
struct xstate)> m_xstate;
72 std::array<uint8_t,
sizeof(
struct dbreg)> m_dbr;
73 std::array<size_t, MaxRegularRegSet + 1> m_regset_offsets;
75 std::optional<RegSetKind> GetSetForNativeRegNum(uint32_t reg_num)
const;
77 Status ReadRegisterSet(RegSetKind set);
78 Status WriteRegisterSet(RegSetKind set);
80 uint8_t *GetOffsetRegSetData(RegSetKind set,
size_t reg_offset);
86 std::optional<YMMSplitPtr> GetYMMSplitReg(uint32_t reg);
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP
std::shared_ptr< lldb_private::WritableDataBuffer > WritableDataBufferSP