LLDB  mainline
RegisterContextWindows.h
Go to the documentation of this file.
1 //===-- RegisterContextWindows.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 //===----------------------------------------------------------------------===//
8 
9 #ifndef liblldb_RegisterContextWindows_H_
10 #define liblldb_RegisterContextWindows_H_
11 
13 #include "lldb/lldb-forward.h"
14 
15 namespace lldb_private {
16 
17 class Thread;
18 
20 public:
21  // Constructors and Destructors
22  RegisterContextWindows(Thread &thread, uint32_t concrete_frame_idx);
23 
24  virtual ~RegisterContextWindows();
25 
26  // Subclasses must override these functions
27  void InvalidateAllRegisters() override;
28 
29  bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override;
30 
31  bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
32 
34  uint32_t num) override;
35 
36  // Subclasses can override these functions if desired
38 
39  uint32_t SetHardwareBreakpoint(lldb::addr_t addr, size_t size) override;
40 
41  bool ClearHardwareBreakpoint(uint32_t hw_idx) override;
42 
44 
45  uint32_t SetHardwareWatchpoint(lldb::addr_t addr, size_t size, bool read,
46  bool write) override;
47 
48  bool ClearHardwareWatchpoint(uint32_t hw_index) override;
49 
50  bool HardwareSingleStep(bool enable) override;
51 
52 protected:
53  virtual bool CacheAllRegisterValues();
54 
55  CONTEXT m_context;
57 };
58 }
59 
60 #endif // #ifndef liblldb_RegisterContextWindows_H_
uint32_t SetHardwareWatchpoint(lldb::addr_t addr, size_t size, bool read, bool write) override
bool ClearHardwareWatchpoint(uint32_t hw_index) override
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
bool ClearHardwareBreakpoint(uint32_t hw_idx) override
RegisterContextWindows(Thread &thread, uint32_t concrete_frame_idx)
bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override
uint64_t addr_t
Definition: lldb-types.h:83
bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override
uint32_t ConvertRegisterKindToRegisterNumber(lldb::RegisterKind kind, uint32_t num) override
Convert from a given register numbering scheme to the lldb register numbering scheme.
uint32_t SetHardwareBreakpoint(lldb::addr_t addr, size_t size) override