1 //===-- RegisterContextPOSIXCore_s390x.h ------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_S390X_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_S390X_H
12 #include "Plugins/Process/Utility/RegisterContextPOSIX_s390x.h"
13 #include "Plugins/Process/elf-core/RegisterUtilities.h"
14 #include "lldb/Utility/DataExtractor.h"
16 class RegisterContextCorePOSIX_s390x
: public RegisterContextPOSIX_s390x
{
18 RegisterContextCorePOSIX_s390x(
19 lldb_private::Thread
&thread
,
20 lldb_private::RegisterInfoInterface
*register_info
,
21 const lldb_private::DataExtractor
&gpregset
,
22 llvm::ArrayRef
<lldb_private::CoreNote
> notes
);
24 ~RegisterContextCorePOSIX_s390x() override
;
26 bool ReadRegister(const lldb_private::RegisterInfo
*reg_info
,
27 lldb_private::RegisterValue
&value
) override
;
29 bool WriteRegister(const lldb_private::RegisterInfo
*reg_info
,
30 const lldb_private::RegisterValue
&value
) override
;
32 bool ReadAllRegisterValues(lldb::WritableDataBufferSP
&data_sp
) override
;
34 bool WriteAllRegisterValues(const lldb::DataBufferSP
&data_sp
) override
;
36 bool HardwareSingleStep(bool enable
) override
;
39 bool ReadGPR() override
;
41 bool ReadFPR() override
;
43 bool WriteGPR() override
;
45 bool WriteFPR() override
;
48 lldb::DataBufferSP m_gpr_buffer
;
49 lldb_private::DataExtractor m_gpr
;
51 lldb::DataBufferSP m_fpr_buffer
;
52 lldb_private::DataExtractor m_fpr
;
55 #endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_S390X_H