LLDB  mainline
DynamicLoaderWasmDYLD.h
Go to the documentation of this file.
1 //===-- DynamicLoaderWasmDYLD.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 liblldb_Plugins_DynamicLoaderWasmDYLD_h_
10 #define liblldb_Plugins_DynamicLoaderWasmDYLD_h_
11 
13 
14 namespace lldb_private {
15 namespace wasm {
16 
18 public:
20 
21  static void Initialize();
22  static void Terminate() {}
23 
25  static const char *GetPluginDescriptionStatic();
26 
27  static DynamicLoader *CreateInstance(Process *process, bool force);
28 
29  /// DynamicLoader
30  /// \{
31  void DidAttach() override;
32  void DidLaunch() override {}
33  Status CanLoadImage() override { return Status(); }
34  lldb::ThreadPlanSP GetStepThroughTrampolinePlan(Thread &thread,
35  bool stop) override;
36  /// \}
37 
38  /// PluginInterface protocol.
39  /// \{
40  llvm::StringRef GetPluginName() override {
42  }
43  /// \}
44 };
45 
46 } // namespace wasm
47 } // namespace lldb_private
48 
49 #endif // liblldb_Plugins_DynamicLoaderWasmDYLD_h_
lldb_private::wasm::DynamicLoaderWasmDYLD::DynamicLoaderWasmDYLD
DynamicLoaderWasmDYLD(Process *process)
Definition: DynamicLoaderWasmDYLD.cpp:25
lldb_private::wasm::DynamicLoaderWasmDYLD::DidLaunch
void DidLaunch() override
Called after launching a process.
Definition: DynamicLoaderWasmDYLD.h:32
lldb_private::Process
Definition: Process.h:340
lldb_private::wasm::DynamicLoaderWasmDYLD::GetPluginName
llvm::StringRef GetPluginName() override
PluginInterface protocol.
Definition: DynamicLoaderWasmDYLD.h:40
lldb_private::wasm::DynamicLoaderWasmDYLD::Terminate
static void Terminate()
Definition: DynamicLoaderWasmDYLD.h:22
lldb_private::ConstString::GetStringRef
llvm::StringRef GetStringRef() const
Get the string value as a llvm::StringRef.
Definition: ConstString.h:202
lldb_private::wasm::DynamicLoaderWasmDYLD::CreateInstance
static DynamicLoader * CreateInstance(Process *process, bool force)
Definition: DynamicLoaderWasmDYLD.cpp:43
lldb_private::Thread
Definition: Thread.h:60
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::wasm::DynamicLoaderWasmDYLD::GetPluginNameStatic
static ConstString GetPluginNameStatic()
Definition: DynamicLoaderWasmDYLD.cpp:33
lldb_private::DynamicLoader
Definition: DynamicLoader.h:52
lldb_private::wasm::DynamicLoaderWasmDYLD::CanLoadImage
Status CanLoadImage() override
Ask if it is ok to try and load or unload an shared library (image).
Definition: DynamicLoaderWasmDYLD.h:33
lldb_private::Status
Definition: Status.h:44
lldb_private::wasm::DynamicLoaderWasmDYLD::GetStepThroughTrampolinePlan
lldb::ThreadPlanSP GetStepThroughTrampolinePlan(Thread &thread, bool stop) override
Provides a plan to step through the dynamic loader trampoline for the current state of thread.
Definition: DynamicLoaderWasmDYLD.cpp:67
lldb_private::wasm::DynamicLoaderWasmDYLD::Initialize
static void Initialize()
Definition: DynamicLoaderWasmDYLD.cpp:28
lldb_private::wasm::DynamicLoaderWasmDYLD::GetPluginDescriptionStatic
static const char * GetPluginDescriptionStatic()
Definition: DynamicLoaderWasmDYLD.cpp:38
lldb_private::wasm::DynamicLoaderWasmDYLD
Definition: DynamicLoaderWasmDYLD.h:17
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::wasm::DynamicLoaderWasmDYLD::DidAttach
void DidAttach() override
DynamicLoader.
Definition: DynamicLoaderWasmDYLD.cpp:58
DynamicLoader.h