1 //===-- RegisterContextPOSIXCore_s390x.h ------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_RegisterContextCorePOSIX_s390x_h_
11 #define liblldb_RegisterContextCorePOSIX_s390x_h_
13 #include "Plugins/Process/Utility/RegisterContextPOSIX_s390x.h"
14 #include "Plugins/Process/elf-core/RegisterUtilities.h"
15 #include "lldb/Utility/DataExtractor.h"
17 class RegisterContextCorePOSIX_s390x : public RegisterContextPOSIX_s390x {
19 RegisterContextCorePOSIX_s390x(
20 lldb_private::Thread &thread,
21 lldb_private::RegisterInfoInterface *register_info,
22 const lldb_private::DataExtractor &gpregset,
23 llvm::ArrayRef<lldb_private::CoreNote> notes);
25 ~RegisterContextCorePOSIX_s390x() override;
27 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
28 lldb_private::RegisterValue &value) override;
30 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
31 const lldb_private::RegisterValue &value) override;
33 bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override;
35 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
37 bool HardwareSingleStep(bool enable) override;
40 bool ReadGPR() override;
42 bool ReadFPR() override;
44 bool WriteGPR() override;
46 bool WriteFPR() override;
49 lldb::DataBufferSP m_gpr_buffer;
50 lldb_private::DataExtractor m_gpr;
52 lldb::DataBufferSP m_fpr_buffer;
53 lldb_private::DataExtractor m_fpr;
56 #endif // liblldb_RegisterContextCorePOSIX_s390x_h_