1 //===-- DynamicLoaderWindowsDYLD.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_Plugins_Process_Windows_DynamicLoaderWindowsDYLD_h_
10 #define liblldb_Plugins_Process_Windows_DynamicLoaderWindowsDYLD_h_
12 #include "lldb/Target/DynamicLoader.h"
13 #include "lldb/lldb-forward.h"
17 namespace lldb_private {
19 class DynamicLoaderWindowsDYLD : public DynamicLoader {
21 DynamicLoaderWindowsDYLD(Process *process);
23 ~DynamicLoaderWindowsDYLD() override;
25 static void Initialize();
26 static void Terminate();
27 static ConstString GetPluginNameStatic();
28 static const char *GetPluginDescriptionStatic();
30 static DynamicLoader *CreateInstance(Process *process, bool force);
32 void OnLoadModule(lldb::ModuleSP module_sp, const ModuleSpec module_spec,
33 lldb::addr_t module_addr);
34 void OnUnloadModule(lldb::addr_t module_addr);
36 void DidAttach() override;
37 void DidLaunch() override;
38 Status CanLoadImage() override;
39 lldb::ThreadPlanSP GetStepThroughTrampolinePlan(Thread &thread,
42 ConstString GetPluginName() override;
43 uint32_t GetPluginVersion() override;
46 lldb::addr_t GetLoadAddress(lldb::ModuleSP executable);
49 std::map<lldb::ModuleSP, lldb::addr_t> m_loaded_modules;
52 } // namespace lldb_private
54 #endif // liblldb_Plugins_Process_Windows_DynamicLoaderWindowsDYLD_h_