Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / Process / elf-core / RegisterContextPOSIXCore_powerpc.h
blob5364c5589238a1db974e7968e47bf6774a822cab
1 //===-- RegisterContextPOSIXCore_powerpc.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 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_POWERPC_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_POWERPC_H
12 #include "Plugins/Process/Utility/RegisterContextPOSIX_powerpc.h"
13 #include "Plugins/Process/elf-core/RegisterUtilities.h"
14 #include "lldb/Utility/DataExtractor.h"
16 class RegisterContextCorePOSIX_powerpc : public RegisterContextPOSIX_powerpc {
17 public:
18 RegisterContextCorePOSIX_powerpc(
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_powerpc() 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;
38 protected:
39 bool ReadGPR() override;
41 bool ReadFPR() override;
43 bool ReadVMX() override;
45 bool WriteGPR() override;
47 bool WriteFPR() override;
49 bool WriteVMX() override;
51 private:
52 lldb::DataBufferSP m_gpr_buffer;
53 lldb::DataBufferSP m_fpr_buffer;
54 lldb::DataBufferSP m_vec_buffer;
55 lldb_private::DataExtractor m_gpr;
56 lldb_private::DataExtractor m_fpr;
57 lldb_private::DataExtractor m_vec;
60 #endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_POWERPC_H