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
15namespace lldb_private {
16
17class Thread;
18
20public:
21 // Constructors and Destructors
22 RegisterContextWindows(Thread &thread, uint32_t concrete_frame_idx);
23
25
26 // Subclasses must override these functions
27 void InvalidateAllRegisters() override;
28
30
31 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
32
34 uint32_t num) override;
35
36 bool HardwareSingleStep(bool enable) override;
37
38 static constexpr uint32_t GetNumHardwareBreakpointSlots() {
40 }
41
42 bool AddHardwareBreakpoint(uint32_t slot, lldb::addr_t address, uint32_t size,
43 bool read, bool write);
44 bool RemoveHardwareBreakpoint(uint32_t slot);
45
47
48protected:
49 static constexpr unsigned NUM_HARDWARE_BREAKPOINT_SLOTS = 4;
50
51 virtual bool CacheAllRegisterValues();
52 virtual bool ApplyAllRegisterValues();
53
54 CONTEXT m_context;
56};
57} // namespace lldb_private
58
59#endif // #ifndef liblldb_RegisterContextWindows_H_
static constexpr uint32_t GetNumHardwareBreakpointSlots()
bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override
bool ReadAllRegisterValues(lldb::WritableDataBufferSP &data_sp) override
static constexpr unsigned NUM_HARDWARE_BREAKPOINT_SLOTS
uint32_t ConvertRegisterKindToRegisterNumber(lldb::RegisterKind kind, uint32_t num) override
Convert from a given register numbering scheme to the lldb register numbering scheme.
bool HardwareSingleStep(bool enable) override
bool AddHardwareBreakpoint(uint32_t slot, lldb::addr_t address, uint32_t size, bool read, bool write)
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP
Definition: lldb-forward.h:328
std::shared_ptr< lldb_private::WritableDataBuffer > WritableDataBufferSP
Definition: lldb-forward.h:329
uint64_t addr_t
Definition: lldb-types.h:79
RegisterKind
Register numbering types.