LLDB mainline
RegisterContextPOSIXCore_loongarch64.h
Go to the documentation of this file.
1//===-- RegisterContextPOSIXCore_loongarch64.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_LOONGARCH64_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_LOONGARCH64_H
11
14
16#include "lldb/Target/Thread.h"
19
20#include <memory>
21
24public:
25 static std::unique_ptr<RegisterContextCorePOSIX_loongarch64>
27 const lldb_private::DataExtractor &gpregset,
28 llvm::ArrayRef<lldb_private::CoreNote> notes);
29
31
32 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
33 lldb_private::RegisterValue &value) override;
34
35 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
36 const lldb_private::RegisterValue &value) override;
37
38protected:
41 std::unique_ptr<RegisterInfoPOSIX_loongarch64> register_info,
42 const lldb_private::DataExtractor &gpregset,
43 llvm::ArrayRef<lldb_private::CoreNote> notes);
44
45 bool ReadGPR() override;
46
47 bool ReadFPR() override;
48
49 bool WriteGPR() override;
50
51 bool WriteFPR() override;
52
53private:
56};
57
58#endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_LOONGARCH64_H
static std::unique_ptr< RegisterContextCorePOSIX_loongarch64 > Create(lldb_private::Thread &thread, const lldb_private::ArchSpec &arch, const lldb_private::DataExtractor &gpregset, llvm::ArrayRef< lldb_private::CoreNote > notes)
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:31
An data extractor class.
Definition: DataExtractor.h:48
Every register is described in detail including its name, alternate name (optional),...