LLDB  mainline
DynamicLoaderWindowsDYLD.h
Go to the documentation of this file.
1 //===-- DynamicLoaderWindowsDYLD.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_Process_Windows_DynamicLoaderWindowsDYLD_h_
10 #define liblldb_Plugins_Process_Windows_DynamicLoaderWindowsDYLD_h_
11 
13 #include "lldb/lldb-forward.h"
14 
15 #include <map>
16 
17 namespace lldb_private {
18 
20 public:
22 
23  ~DynamicLoaderWindowsDYLD() override;
24 
25  static void Initialize();
26  static void Terminate();
28  static const char *GetPluginDescriptionStatic();
29 
30  static DynamicLoader *CreateInstance(Process *process, bool force);
31 
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);
35 
36  void DidAttach() override;
37  void DidLaunch() override;
38  Status CanLoadImage() override;
39  lldb::ThreadPlanSP GetStepThroughTrampolinePlan(Thread &thread,
40  bool stop) override;
41 
42  ConstString GetPluginName() override;
43  uint32_t GetPluginVersion() override;
44 
45 protected:
46  lldb::addr_t GetLoadAddress(lldb::ModuleSP executable);
47 
48 private:
49  std::map<lldb::ModuleSP, lldb::addr_t> m_loaded_modules;
50 };
51 
52 } // namespace lldb_private
53 
54 #endif // liblldb_Plugins_Process_Windows_DynamicLoaderWindowsDYLD_h_
void DidAttach() override
Called after attaching a process.
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
static DynamicLoader * CreateInstance(Process *process, bool force)
void OnUnloadModule(lldb::addr_t module_addr)
lldb::addr_t GetLoadAddress(lldb::ModuleSP executable)
void OnLoadModule(lldb::ModuleSP module_sp, const ModuleSpec module_spec, lldb::addr_t module_addr)
Status CanLoadImage() override
Ask if it is ok to try and load or unload an shared library (image).
A plug-in interface definition class for debugging a process.
Definition: Process.h:353
lldb::ThreadPlanSP GetStepThroughTrampolinePlan(Thread &thread, bool stop) override
Provides a plan to step through the dynamic loader trampoline for the current state of thread...
A plug-in interface definition class for dynamic loaders.
Definition: DynamicLoader.h:64
uint64_t addr_t
Definition: lldb-types.h:83
A uniqued constant string class.
Definition: ConstString.h:38
void DidLaunch() override
Called after launching a process.
An error handling class.
Definition: Status.h:44