1 //===-- RegisterContextPOSIXProcessMonitor_powerpc.h -------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef liblldb_RegisterContextPOSIXProcessMonitor_powerpc_H_
12 #define liblldb_RegisterContextPOSIXProcessMonitor_powerpc_H_
14 #include "Plugins/Process/Utility/RegisterContextPOSIX_powerpc.h"
15 #include "RegisterContextPOSIX.h"
17 class RegisterContextPOSIXProcessMonitor_powerpc
18 : public RegisterContextPOSIX_powerpc,
19 public POSIXBreakpointProtocol {
21 RegisterContextPOSIXProcessMonitor_powerpc(
22 lldb_private::Thread &thread, uint32_t concrete_frame_idx,
23 lldb_private::RegisterInfoInterface *register_info);
40 // lldb_private::RegisterContext
41 bool ReadRegister(const unsigned reg, lldb_private::RegisterValue &value);
43 bool WriteRegister(const unsigned reg,
44 const lldb_private::RegisterValue &value);
46 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
47 lldb_private::RegisterValue &value);
49 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
50 const lldb_private::RegisterValue &value);
52 bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp);
54 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp);
56 uint32_t SetHardwareWatchpoint(lldb::addr_t addr, size_t size, bool read,
59 bool ClearHardwareWatchpoint(uint32_t hw_index);
61 bool HardwareSingleStep(bool enable);
63 // POSIXBreakpointProtocol
64 bool UpdateAfterBreakpoint();
66 unsigned GetRegisterIndexFromOffset(unsigned offset);
68 bool IsWatchpointHit(uint32_t hw_index);
70 bool ClearWatchpointHits();
72 lldb::addr_t GetWatchpointAddress(uint32_t hw_index);
74 bool IsWatchpointVacant(uint32_t hw_index);
76 bool SetHardwareWatchpointWithIndex(lldb::addr_t addr, size_t size, bool read,
77 bool write, uint32_t hw_index);
79 uint32_t NumSupportedHardwareWatchpoints();
82 ProcessMonitor &GetMonitor();