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
17namespace lldb_private {
18
20public:
21 ~MemoryHistoryASan() override = default;
22
24 CreateInstance(const lldb::ProcessSP &process_sp);
25
26 static void Initialize();
27
28 static void Terminate();
29
30 static llvm::StringRef GetPluginNameStatic() { return "asan"; }
31
32 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
33
35
36private:
37 MemoryHistoryASan(const lldb::ProcessSP &process_sp);
38
40};
41
42} // namespace lldb_private
43
44#endif // LLDB_SOURCE_PLUGINS_MEMORYHISTORY_ASAN_MEMORYHISTORYASAN_H
lldb_private::HistoryThreads GetHistoryThreads(lldb::addr_t address) override
static llvm::StringRef GetPluginNameStatic()
static lldb::MemoryHistorySP CreateInstance(const lldb::ProcessSP &process_sp)
~MemoryHistoryASan() override=default
llvm::StringRef GetPluginName() override
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
std::vector< lldb::ThreadSP > HistoryThreads
Definition: MemoryHistory.h:20
std::shared_ptr< lldb_private::MemoryHistory > MemoryHistorySP
Definition: lldb-forward.h:362
std::shared_ptr< lldb_private::Process > ProcessSP
Definition: lldb-forward.h:381
std::weak_ptr< lldb_private::Process > ProcessWP
Definition: lldb-forward.h:384
uint64_t addr_t
Definition: lldb-types.h:79