LLDB mainline
NativeRegisterContextDBReg_x86.h
Go to the documentation of this file.
1//===-- NativeRegisterContextDBReg_x86.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 LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_NATIVEREGISTERCONTEXTDBREG_X86_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_NATIVEREGISTERCONTEXTDBREG_X86_H
11
13
14namespace lldb_private {
15
17 : public virtual NativeRegisterContextRegisterInfo {
18public:
19 Status IsWatchpointHit(uint32_t wp_index, bool &is_hit) override;
20
21 Status GetWatchpointHitIndex(uint32_t &wp_index,
22 lldb::addr_t trap_addr) override;
23
24 Status IsWatchpointVacant(uint32_t wp_index, bool &is_vacant) override;
25
26 bool ClearHardwareWatchpoint(uint32_t wp_index) override;
27
28 Status ClearWatchpointHit(uint32_t wp_index) override;
29
31
33 uint32_t watch_flags,
34 uint32_t wp_index);
35
36 uint32_t SetHardwareWatchpoint(lldb::addr_t addr, size_t size,
37 uint32_t watch_flags) override;
38
39 lldb::addr_t GetWatchpointAddress(uint32_t wp_index) override;
40
41 uint32_t NumSupportedHardwareWatchpoints() override;
42
43 virtual const RegisterInfo *GetDR(int num) const;
44};
45
46} // namespace lldb_private
47
48#endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_NATIVEREGISTERCONTEXTDBREG_X86_H
Status SetHardwareWatchpointWithIndex(lldb::addr_t addr, size_t size, uint32_t watch_flags, uint32_t wp_index)
Status IsWatchpointHit(uint32_t wp_index, bool &is_hit) override
lldb::addr_t GetWatchpointAddress(uint32_t wp_index) override
Status GetWatchpointHitIndex(uint32_t &wp_index, lldb::addr_t trap_addr) override
uint32_t SetHardwareWatchpoint(lldb::addr_t addr, size_t size, uint32_t watch_flags) override
virtual const RegisterInfo * GetDR(int num) const
Status IsWatchpointVacant(uint32_t wp_index, bool &is_vacant) override
NativeRegisterContextRegisterInfo(NativeThreadProtocol &thread, RegisterInfoInterface *register_info_interface)
Construct a NativeRegisterContextRegisterInfo, taking ownership of the register_info_interface pointe...
An error handling class.
Definition Status.h:118
A class that represents a running process on the host machine.
uint64_t addr_t
Definition lldb-types.h:80
Every register is described in detail including its name, alternate name (optional),...