LLDB mainline
RegisterContextPOSIXCore_x86_64.h
Go to the documentation of this file.
1//===-- RegisterContextPOSIXCore_x86_64.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_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_X86_64_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_X86_64_H
11
14
16public:
20 const lldb_private::DataExtractor &gpregset,
21 llvm::ArrayRef<lldb_private::CoreNote> notes);
22
23 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
24 lldb_private::RegisterValue &value) override;
25
26 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
27 const lldb_private::RegisterValue &value) override;
28
30
31 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
32
33 bool HardwareSingleStep(bool enable) override;
34
35protected:
36 bool ReadGPR() override;
37
38 bool ReadFPR() override;
39
40 bool WriteGPR() override;
41
42 bool WriteFPR() override;
43
44private:
45 std::unique_ptr<uint8_t[]> m_gpregset;
46 std::unique_ptr<uint8_t[]> m_fpregset;
47};
48
49#endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_X86_64_H
bool ReadRegister(const lldb_private::RegisterInfo *reg_info, lldb_private::RegisterValue &value) override
bool ReadAllRegisterValues(lldb::WritableDataBufferSP &data_sp) override
bool WriteRegister(const lldb_private::RegisterInfo *reg_info, const lldb_private::RegisterValue &value) override
bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override
An data extractor class.
Definition: DataExtractor.h:48
RegisterInfo interface to patch RegisterInfo structure for archs.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP
Definition: lldb-forward.h:333
std::shared_ptr< lldb_private::WritableDataBuffer > WritableDataBufferSP
Definition: lldb-forward.h:334
Every register is described in detail including its name, alternate name (optional),...