1 //===-- RegisterContextWindows.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_RegisterContextWindows_H_
11 #define liblldb_RegisterContextWindows_H_
13 #include "lldb/lldb-forward.h"
14 #include "lldb/Target/RegisterContext.h"
16 namespace lldb_private
21 class RegisterContextWindows : public lldb_private::RegisterContext
24 //------------------------------------------------------------------
25 // Constructors and Destructors
26 //------------------------------------------------------------------
27 RegisterContextWindows(Thread &thread, uint32_t concrete_frame_idx);
29 virtual ~RegisterContextWindows();
31 //------------------------------------------------------------------
32 // Subclasses must override these functions
33 //------------------------------------------------------------------
34 void InvalidateAllRegisters() override;
36 bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override;
38 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
40 uint32_t ConvertRegisterKindToRegisterNumber(lldb::RegisterKind kind, uint32_t num) override;
42 //------------------------------------------------------------------
43 // Subclasses can override these functions if desired
44 //------------------------------------------------------------------
45 uint32_t NumSupportedHardwareBreakpoints() override;
47 uint32_t SetHardwareBreakpoint(lldb::addr_t addr, size_t size) override;
49 bool ClearHardwareBreakpoint(uint32_t hw_idx) override;
51 uint32_t NumSupportedHardwareWatchpoints() override;
53 uint32_t SetHardwareWatchpoint(lldb::addr_t addr, size_t size, bool read, bool write) override;
55 bool ClearHardwareWatchpoint(uint32_t hw_index) override;
57 bool HardwareSingleStep(bool enable) override;
60 virtual bool CacheAllRegisterValues();
67 #endif // #ifndef liblldb_RegisterContextWindows_H_