1//===-- RegisterContextPOSIXCore_mips64.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_MIPS64_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_MIPS64_H
11
12#include "Plugins/Process/Utility/RegisterContextPOSIX_mips64.h"
13#include "Plugins/Process/elf-core/RegisterUtilities.h"
14#include "lldb/Utility/DataBufferHeap.h"
15#include "lldb/Utility/DataExtractor.h"
16
17class RegisterContextCorePOSIX_mips64 : public RegisterContextPOSIX_mips64 {
18public:
19 RegisterContextCorePOSIX_mips64(
20 lldb_private::Thread &thread,
21 lldb_private::RegisterInfoInterface *register_info,
22 const lldb_private::DataExtractor &gpregset,
23 llvm::ArrayRef<lldb_private::CoreNote> notes);
24
25 ~RegisterContextCorePOSIX_mips64() override;
26
27 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
28 lldb_private::RegisterValue &value) override;
29
30 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
31 const lldb_private::RegisterValue &value) override;
32
33 bool ReadAllRegisterValues(lldb::WritableDataBufferSP &data_sp) override;
34
35 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
36
37 bool HardwareSingleStep(bool enable) override;
38
39protected:
40 bool ReadGPR() override;
41
42 bool ReadFPR() override;
43
44 bool WriteGPR() override;
45
46 bool WriteFPR() override;
47
48private:
49 lldb::DataBufferSP m_gpr_buffer;
50 lldb::DataBufferSP m_fpr_buffer;
51 lldb_private::DataExtractor m_gpr;
52 lldb_private::DataExtractor m_fpr;
53};
54
55#endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_MIPS64_H
56

source code of lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_mips64.h