[OpenACC] Implement 'device_type' for 'data' construct
[llvm-project.git] / lldb / source / Plugins / MemoryHistory / asan / MemoryHistoryASan.h
blob6563c3cd94a7f8f4692b445af827244aab249952
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 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_MEMORYHISTORY_ASAN_MEMORYHISTORYASAN_H
10 #define LLDB_SOURCE_PLUGINS_MEMORYHISTORY_ASAN_MEMORYHISTORYASAN_H
12 #include "lldb/Target/ABI.h"
13 #include "lldb/Target/MemoryHistory.h"
14 #include "lldb/Target/Process.h"
15 #include "lldb/lldb-private.h"
17 namespace lldb_private {
19 class MemoryHistoryASan : public lldb_private::MemoryHistory {
20 public:
21 ~MemoryHistoryASan() override = default;
23 static lldb::MemoryHistorySP
24 CreateInstance(const lldb::ProcessSP &process_sp);
26 static void Initialize();
28 static void Terminate();
30 static llvm::StringRef GetPluginNameStatic() { return "asan"; }
32 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
34 lldb_private::HistoryThreads GetHistoryThreads(lldb::addr_t address) override;
36 private:
37 MemoryHistoryASan(const lldb::ProcessSP &process_sp);
39 lldb::ProcessWP m_process_wp;
42 } // namespace lldb_private
44 #endif // LLDB_SOURCE_PLUGINS_MEMORYHISTORY_ASAN_MEMORYHISTORYASAN_H