LLDB mainline
RegisterContextPOSIXCore_arm64.h
Go to the documentation of this file.
1//===-- RegisterContextPOSIXCore_arm64.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_ARM64_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_ARM64_H
11
14
18
20public:
21 static std::unique_ptr<RegisterContextCorePOSIX_arm64>
23 const lldb_private::DataExtractor &gpregset,
24 llvm::ArrayRef<lldb_private::CoreNote> notes);
25
27
28 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
29 lldb_private::RegisterValue &value) override;
30
31 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
32 const lldb_private::RegisterValue &value) override;
33
34 bool ReadAllRegisterValues(lldb::WritableDataBufferSP &data_sp) override;
35
36 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
37
38 bool HardwareSingleStep(bool enable) override;
39
40protected:
43 std::unique_ptr<RegisterInfoPOSIX_arm64> register_info,
44 const lldb_private::DataExtractor &gpregset,
45 llvm::ArrayRef<lldb_private::CoreNote> notes);
46
47 bool ReadGPR() override;
48
49 bool ReadFPR() override;
50
51 bool WriteGPR() override;
52
53 bool WriteFPR() override;
54
55private:
60
63
64 const uint8_t *GetSVEBuffer(uint64_t offset = 0);
65
67
68 uint32_t CalculateSVEOffset(const lldb_private::RegisterInfo *reg_info);
69
70 uint64_t GetSVERegVG() { return m_sve_vector_length / 8; }
71};
72
73#endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_ARM64_H
static std::unique_ptr< RegisterContextCorePOSIX_arm64 > Create(lldb_private::Thread &thread, const lldb_private::ArchSpec &arch, const lldb_private::DataExtractor &gpregset, llvm::ArrayRef< lldb_private::CoreNote > notes)
~RegisterContextCorePOSIX_arm64() override
uint32_t CalculateSVEOffset(const lldb_private::RegisterInfo *reg_info)
bool ReadAllRegisterValues(lldb::WritableDataBufferSP &data_sp) override
const uint8_t * GetSVEBuffer(uint64_t offset=0)
bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override
bool WriteRegister(const lldb_private::RegisterInfo *reg_info, const lldb_private::RegisterValue &value) override
bool ReadRegister(const lldb_private::RegisterInfo *reg_info, lldb_private::RegisterValue &value) override
An architecture specification class.
Definition: ArchSpec.h:32
An data extractor class.
Definition: DataExtractor.h:48