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 LLDB_SOURCE_PLUGINS_DYNAMICLOADER_WINDOWS_DYLD_DYNAMICLOADERWINDOWSDYLD_H
10#define LLDB_SOURCE_PLUGINS_DYNAMICLOADER_WINDOWS_DYLD_DYNAMICLOADERWINDOWSDYLD_H
11
13#include "lldb/lldb-forward.h"
14
15#include <map>
16
17namespace lldb_private {
18
20public:
22
24
25 static void Initialize();
26 static void Terminate();
27 static llvm::StringRef GetPluginNameStatic() { return "windows-dyld"; }
28 static llvm::StringRef 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;
40 bool stop) override;
41
42 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
43
44protected:
46
47private:
48 std::map<lldb::ModuleSP, lldb::addr_t> m_loaded_modules;
49};
50
51} // namespace lldb_private
52
53#endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_WINDOWS_DYLD_DYNAMICLOADERWINDOWSDYLD_H
void DidAttach() override
Called after attaching a process.
void DidLaunch() override
Called after launching a process.
Status CanLoadImage() override
Ask if it is ok to try and load or unload an shared library (image).
void OnLoadModule(lldb::ModuleSP module_sp, const ModuleSpec module_spec, lldb::addr_t module_addr)
lldb::addr_t GetLoadAddress(lldb::ModuleSP executable)
std::map< lldb::ModuleSP, lldb::addr_t > m_loaded_modules
void OnUnloadModule(lldb::addr_t module_addr)
static DynamicLoader * CreateInstance(Process *process, bool force)
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:53
A plug-in interface definition class for debugging a process.
Definition: Process.h:341
An error handling class.
Definition: Status.h:44
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
Definition: lldb-forward.h:449
uint64_t addr_t
Definition: lldb-types.h:80
std::shared_ptr< lldb_private::Module > ModuleSP
Definition: lldb-forward.h:371