Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / Process / elf-core / RegisterContextPOSIXCore_arm.h
blob8d773a046bcacd1853ad9971a39c0f175d5d22e4
1 //===-- RegisterContextPOSIXCore_arm.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_ARM_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_ARM_H
12 #include "Plugins/Process/Utility/RegisterContextPOSIX_arm.h"
13 #include "Plugins/Process/elf-core/RegisterUtilities.h"
14 #include "lldb/Utility/DataBufferHeap.h"
15 #include "lldb/Utility/DataExtractor.h"
17 class RegisterContextCorePOSIX_arm : public RegisterContextPOSIX_arm {
18 public:
19 RegisterContextCorePOSIX_arm(
20 lldb_private::Thread &thread,
21 std::unique_ptr<RegisterInfoPOSIX_arm> register_info,
22 const lldb_private::DataExtractor &gpregset,
23 llvm::ArrayRef<lldb_private::CoreNote> notes);
25 ~RegisterContextCorePOSIX_arm() 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::WritableDataBufferSP &data_sp) override;
35 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
37 bool HardwareSingleStep(bool enable) override;
39 protected:
40 bool ReadGPR() override;
42 bool ReadFPR() override;
44 bool WriteGPR() override;
46 bool WriteFPR() override;
48 private:
49 lldb::DataBufferSP m_gpr_buffer;
50 lldb_private::DataExtractor m_gpr;
53 #endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_ARM_H