1 //===-- DynamicLoaderStatic.h -----------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_DynamicLoaderStatic_h_
10 #define liblldb_DynamicLoaderStatic_h_
12 #include "lldb/Target/DynamicLoader.h"
13 #include "lldb/Target/Process.h"
14 #include "lldb/Utility/FileSpec.h"
15 #include "lldb/Utility/UUID.h"
17 class DynamicLoaderStatic : public lldb_private::DynamicLoader {
19 DynamicLoaderStatic(lldb_private::Process *process);
21 ~DynamicLoaderStatic() override;
24 static void Initialize();
26 static void Terminate();
28 static lldb_private::ConstString GetPluginNameStatic();
30 static const char *GetPluginDescriptionStatic();
32 static lldb_private::DynamicLoader *
33 CreateInstance(lldb_private::Process *process, bool force);
35 /// Called after attaching a process.
37 /// Allow DynamicLoader plug-ins to execute some code after
38 /// attaching to a process.
39 void DidAttach() override;
41 void DidLaunch() override;
43 lldb::ThreadPlanSP GetStepThroughTrampolinePlan(lldb_private::Thread &thread,
44 bool stop_others) override;
46 lldb_private::Status CanLoadImage() override;
48 // PluginInterface protocol
49 lldb_private::ConstString GetPluginName() override;
51 uint32_t GetPluginVersion() override;
54 void LoadAllImagesAtFileAddresses();
56 DISALLOW_COPY_AND_ASSIGN(DynamicLoaderStatic);
59 #endif // liblldb_DynamicLoaderStatic_h_