LLDB mainline
RegisterContextPOSIX_s390x.h
Go to the documentation of this file.
1//===-- RegisterContextPOSIX_s390x.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_UTILITY_REGISTERCONTEXTPOSIX_S390X_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTPOSIX_S390X_H
11
16#include "lldb/Utility/Log.h"
17
19public:
21 lldb_private::Thread &thread, uint32_t concrete_frame_idx,
23
25
26 void Invalidate();
27
28 void InvalidateAllRegisters() override;
29
30 size_t GetRegisterCount() override;
31
32 virtual unsigned GetRegisterSize(unsigned reg);
33
34 virtual unsigned GetRegisterOffset(unsigned reg);
35
36 const lldb_private::RegisterInfo *GetRegisterInfoAtIndex(size_t reg) override;
37
38 size_t GetRegisterSetCount() override;
39
40 const lldb_private::RegisterSet *GetRegisterSet(size_t set) override;
41
42 const char *GetRegisterName(unsigned reg);
43
44protected:
45 struct RegInfo {
46 uint32_t num_registers;
49
50 uint32_t last_gpr;
51 uint32_t first_fpr;
52 uint32_t last_fpr;
53 };
54
56 std::unique_ptr<lldb_private::RegisterInfoInterface> m_register_info_up;
57
58 virtual bool IsRegisterSetAvailable(size_t set_index);
59
61
62 bool IsGPR(unsigned reg);
63
64 bool IsFPR(unsigned reg);
65
66 virtual bool ReadGPR() = 0;
67 virtual bool ReadFPR() = 0;
68 virtual bool WriteGPR() = 0;
69 virtual bool WriteFPR() = 0;
70};
71
72#endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTPOSIX_S390X_H
virtual bool IsRegisterSetAvailable(size_t set_index)
virtual bool ReadFPR()=0
virtual unsigned GetRegisterSize(unsigned reg)
std::unique_ptr< lldb_private::RegisterInfoInterface > m_register_info_up
const char * GetRegisterName(unsigned reg)
const lldb_private::RegisterSet * GetRegisterSet(size_t set) override
~RegisterContextPOSIX_s390x() override
virtual bool WriteFPR()=0
virtual const lldb_private::RegisterInfo * GetRegisterInfo()
virtual bool WriteGPR()=0
virtual unsigned GetRegisterOffset(unsigned reg)
const lldb_private::RegisterInfo * GetRegisterInfoAtIndex(size_t reg) override
virtual bool ReadGPR()=0
RegisterInfo interface to patch RegisterInfo structure for archs.
Every register is described in detail including its name, alternate name (optional),...
Registers are grouped into register sets.