LLDB  mainline
NativeRegisterContextRegisterInfo.h
Go to the documentation of this file.
1 //===-- NativeRegisterContextRegisterInfo.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_NATIVEREGISTERCONTEXTREGISTERINFO_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_NATIVEREGISTERCONTEXTREGISTERINFO_H
11 
12 #include <memory>
13 
14 #include "RegisterInfoInterface.h"
16 
17 namespace lldb_private {
19 public:
20  ///
21  /// Construct a NativeRegisterContextRegisterInfo, taking ownership
22  /// of the register_info_interface pointer.
23  ///
25  NativeThreadProtocol &thread,
26  RegisterInfoInterface *register_info_interface);
27 
28  uint32_t GetRegisterCount() const override;
29 
30  uint32_t GetUserRegisterCount() const override;
31 
32  const RegisterInfo *GetRegisterInfoAtIndex(uint32_t reg_index) const override;
33 
35 
36 protected:
37  std::unique_ptr<RegisterInfoInterface> m_register_info_interface_up;
38 };
39 }
40 #endif
lldb_private::NativeThreadProtocol
Definition: NativeThreadProtocol.h:20
lldb_private::RegisterInfoInterface
Definition: RegisterInfoInterface.h:21
RegisterInfoInterface.h
lldb_private::NativeRegisterContextRegisterInfo::GetRegisterInfoInterface
const RegisterInfoInterface & GetRegisterInfoInterface() const
Definition: NativeRegisterContextRegisterInfo.cpp:40
lldb_private::NativeRegisterContextRegisterInfo
Definition: NativeRegisterContextRegisterInfo.h:18
uint32_t
lldb_private::NativeRegisterContextRegisterInfo::m_register_info_interface_up
std::unique_ptr< RegisterInfoInterface > m_register_info_interface_up
Definition: NativeRegisterContextRegisterInfo.h:37
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::NativeRegisterContextRegisterInfo::NativeRegisterContextRegisterInfo
NativeRegisterContextRegisterInfo(NativeThreadProtocol &thread, RegisterInfoInterface *register_info_interface)
Construct a NativeRegisterContextRegisterInfo, taking ownership of the register_info_interface pointe...
Definition: NativeRegisterContextRegisterInfo.cpp:15
lldb_private::NativeRegisterContextRegisterInfo::GetUserRegisterCount
uint32_t GetUserRegisterCount() const override
Definition: NativeRegisterContextRegisterInfo.cpp:27
lldb_private::NativeRegisterContext
Definition: NativeRegisterContext.h:21
lldb_private::NativeRegisterContextRegisterInfo::GetRegisterInfoAtIndex
const RegisterInfo * GetRegisterInfoAtIndex(uint32_t reg_index) const override
Definition: NativeRegisterContextRegisterInfo.cpp:31
lldb_private::NativeRegisterContextRegisterInfo::GetRegisterCount
uint32_t GetRegisterCount() const override
Definition: NativeRegisterContextRegisterInfo.cpp:23
NativeRegisterContext.h