LLDB  mainline
MemoryHistoryASan.h
Go to the documentation of this file.
1 //===-- MemoryHistoryASan.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_MEMORYHISTORY_ASAN_MEMORYHISTORYASAN_H
10 #define LLDB_SOURCE_PLUGINS_MEMORYHISTORY_ASAN_MEMORYHISTORYASAN_H
11 
12 #include "lldb/Target/ABI.h"
14 #include "lldb/Target/Process.h"
15 #include "lldb/lldb-private.h"
16 
17 namespace lldb_private {
18 
20 public:
21  ~MemoryHistoryASan() override = default;
22 
23  static lldb::MemoryHistorySP
24  CreateInstance(const lldb::ProcessSP &process_sp);
25 
26  static void Initialize();
27 
28  static void Terminate();
29 
31 
32  llvm::StringRef GetPluginName() override {
34  }
35 
37 
38 private:
39  MemoryHistoryASan(const lldb::ProcessSP &process_sp);
40 
41  lldb::ProcessWP m_process_wp;
42 };
43 
44 } // namespace lldb_private
45 
46 #endif // LLDB_SOURCE_PLUGINS_MEMORYHISTORY_ASAN_MEMORYHISTORYASAN_H
MemoryHistory.h
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
ABI.h
Process.h
lldb_private::MemoryHistoryASan::GetHistoryThreads
lldb_private::HistoryThreads GetHistoryThreads(lldb::addr_t address) override
Definition: MemoryHistoryASan.cpp:152
lldb_private::MemoryHistory
Definition: MemoryHistory.h:23
lldb_private::MemoryHistoryASan::Terminate
static void Terminate()
Definition: MemoryHistoryASan.cpp:55
lldb_private::MemoryHistoryASan::m_process_wp
lldb::ProcessWP m_process_wp
Definition: MemoryHistoryASan.h:41
lldb_private::ConstString::GetStringRef
llvm::StringRef GetStringRef() const
Get the string value as a llvm::StringRef.
Definition: ConstString.h:202
lldb_private::MemoryHistoryASan::GetPluginName
llvm::StringRef GetPluginName() override
Definition: MemoryHistoryASan.h:32
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::MemoryHistoryASan::CreateInstance
static lldb::MemoryHistorySP CreateInstance(const lldb::ProcessSP &process_sp)
Definition: MemoryHistoryASan.cpp:33
lldb_private::MemoryHistoryASan
Definition: MemoryHistoryASan.h:19
lldb_private::MemoryHistoryASan::GetPluginNameStatic
static lldb_private::ConstString GetPluginNameStatic()
Definition: MemoryHistoryASan.cpp:59
lldb_private::MemoryHistoryASan::MemoryHistoryASan
MemoryHistoryASan(const lldb::ProcessSP &process_sp)
Definition: MemoryHistoryASan.cpp:64
lldb-private.h
lldb_private::MemoryHistoryASan::Initialize
static void Initialize()
Definition: MemoryHistoryASan.cpp:50
lldb_private::MemoryHistoryASan::~MemoryHistoryASan
~MemoryHistoryASan() override=default
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::HistoryThreads
std::vector< lldb::ThreadSP > HistoryThreads
Definition: MemoryHistory.h:21