Path: blob/main/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.h
39653 views
//===-- DynamicLoaderWindowsDYLD.h ------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_PLUGINS_DYNAMICLOADER_WINDOWS_DYLD_DYNAMICLOADERWINDOWSDYLD_H9#define LLDB_SOURCE_PLUGINS_DYNAMICLOADER_WINDOWS_DYLD_DYNAMICLOADERWINDOWSDYLD_H1011#include "lldb/Target/DynamicLoader.h"12#include "lldb/lldb-forward.h"1314#include <map>1516namespace lldb_private {1718class DynamicLoaderWindowsDYLD : public DynamicLoader {19public:20DynamicLoaderWindowsDYLD(Process *process);2122~DynamicLoaderWindowsDYLD() override;2324static void Initialize();25static void Terminate();26static llvm::StringRef GetPluginNameStatic() { return "windows-dyld"; }27static llvm::StringRef GetPluginDescriptionStatic();2829static DynamicLoader *CreateInstance(Process *process, bool force);3031void OnLoadModule(lldb::ModuleSP module_sp, const ModuleSpec module_spec,32lldb::addr_t module_addr);33void OnUnloadModule(lldb::addr_t module_addr);3435void DidAttach() override;36void DidLaunch() override;37Status CanLoadImage() override;38lldb::ThreadPlanSP GetStepThroughTrampolinePlan(Thread &thread,39bool stop) override;4041llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }4243protected:44lldb::addr_t GetLoadAddress(lldb::ModuleSP executable);4546private:47std::map<lldb::ModuleSP, lldb::addr_t> m_loaded_modules;48};4950} // namespace lldb_private5152#endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_WINDOWS_DYLD_DYNAMICLOADERWINDOWSDYLD_H535455