LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
lldb_private::DynamicLoaderWindowsDYLD Class Reference

#include <DynamicLoaderWindowsDYLD.h>

Inheritance diagram for lldb_private::DynamicLoaderWindowsDYLD:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::DynamicLoaderWindowsDYLD:
Collaboration graph
[legend]

Public Member Functions

 DynamicLoaderWindowsDYLD (Process *process)
 
 ~DynamicLoaderWindowsDYLD () override
 
void OnLoadModule (lldb::ModuleSP module_sp, const ModuleSpec module_spec, lldb::addr_t module_addr)
 
void OnUnloadModule (lldb::addr_t module_addr)
 
void DidAttach () override
 Called after attaching a process. More...
 
void DidLaunch () override
 Called after launching a process. More...
 
Status CanLoadImage () override
 Ask if it is ok to try and load or unload an shared library (image). More...
 
lldb::ThreadPlanSP GetStepThroughTrampolinePlan (Thread &thread, bool stop) override
 Provides a plan to step through the dynamic loader trampoline for the current state of thread. More...
 
ConstString GetPluginName () override
 
uint32_t GetPluginVersion () override
 
- Public Member Functions inherited from lldb_private::DynamicLoader
 DynamicLoader (Process *process)
 Construct with a process. More...
 
 ~DynamicLoader () override
 Destructor. More...
 
virtual bool ProcessDidExec ()
 Helper function that can be used to detect when a process has called exec and is now a new and different process. More...
 
bool GetStopWhenImagesChange () const
 Get whether the process should stop when images change. More...
 
void SetStopWhenImagesChange (bool stop)
 Set whether the process should stop when images change. More...
 
virtual size_t FindEquivalentSymbols (Symbol *original_symbol, ModuleList &module_list, SymbolContextList &equivalent_symbols)
 Some dynamic loaders provide features where there are a group of symbols "equivalent to" a given symbol one of which will be chosen when the symbol is bound. More...
 
virtual bool AlwaysRelyOnEHUnwindInfo (SymbolContext &sym_ctx)
 Ask if the eh_frame information for the given SymbolContext should be relied on even when it's the first frame in a stack unwind. More...
 
virtual lldb::addr_t GetThreadLocalData (const lldb::ModuleSP module, const lldb::ThreadSP thread, lldb::addr_t tls_file_addr)
 Retrieves the per-module TLS block for a given thread. More...
 
virtual lldb::ModuleSP LoadModuleAtAddress (const lldb_private::FileSpec &file, lldb::addr_t link_map_addr, lldb::addr_t base_addr, bool base_addr_is_offset)
 Locates or creates a module given by file and updates/loads the resulting module at the virtual base address base_addr. More...
 
virtual bool GetSharedCacheInformation (lldb::addr_t &base_address, UUID &uuid, LazyBool &using_shared_cache, LazyBool &private_shared_cache)
 Get information about the shared cache for a process, if possible. More...
 
- Public Member Functions inherited from lldb_private::PluginInterface
virtual ~PluginInterface ()
 

Static Public Member Functions

static void Initialize ()
 
static void Terminate ()
 
static ConstString GetPluginNameStatic ()
 
static const char * GetPluginDescriptionStatic ()
 
static DynamicLoaderCreateInstance (Process *process, bool force)
 
- Static Public Member Functions inherited from lldb_private::DynamicLoader
static DynamicLoaderFindPlugin (Process *process, const char *plugin_name)
 Find a dynamic loader plugin for a given process. More...
 

Protected Member Functions

lldb::addr_t GetLoadAddress (lldb::ModuleSP executable)
 
- Protected Member Functions inherited from lldb_private::DynamicLoader
lldb::ModuleSP GetTargetExecutable ()
 Checks to see if the target module has changed, updates the target accordingly and returns the target executable module. More...
 
virtual void UpdateLoadedSections (lldb::ModuleSP module, lldb::addr_t link_map_addr, lldb::addr_t base_addr, bool base_addr_is_offset)
 Updates the load address of every allocatable section in module. More...
 
void UpdateLoadedSectionsCommon (lldb::ModuleSP module, lldb::addr_t base_addr, bool base_addr_is_offset)
 
virtual void UnloadSections (const lldb::ModuleSP module)
 Removes the loaded sections from the target in module. More...
 
void UnloadSectionsCommon (const lldb::ModuleSP module)
 
const lldb_private::SectionListGetSectionListFromModule (const lldb::ModuleSP module) const
 
int64_t ReadUnsignedIntWithSizeInBytes (lldb::addr_t addr, int size_in_bytes)
 
lldb::addr_t ReadPointer (lldb::addr_t addr)
 
void LoadOperatingSystemPlugin (bool flush)
 

Additional Inherited Members

- Protected Attributes inherited from lldb_private::DynamicLoader
Processm_process
 The process that this dynamic loader plug-in is tracking. More...
 

Detailed Description

Definition at line 19 of file DynamicLoaderWindowsDYLD.h.

Constructor & Destructor Documentation

◆ DynamicLoaderWindowsDYLD()

DynamicLoaderWindowsDYLD::DynamicLoaderWindowsDYLD ( Process process)

Definition at line 27 of file DynamicLoaderWindowsDYLD.cpp.

Referenced by CreateInstance().

◆ ~DynamicLoaderWindowsDYLD()

DynamicLoaderWindowsDYLD::~DynamicLoaderWindowsDYLD ( )
override

Definition at line 30 of file DynamicLoaderWindowsDYLD.cpp.

Member Function Documentation

◆ CanLoadImage()

Status DynamicLoaderWindowsDYLD::CanLoadImage ( )
overridevirtual

Ask if it is ok to try and load or unload an shared library (image).

The dynamic loader often knows when it would be ok to try and load or unload a shared library. This function call allows the dynamic loader plug-ins to check any current dyld state to make sure it is an ok time to load a shared library.

Returns
true if it is currently ok to try and load a shared library into the process, false otherwise.

Implements lldb_private::DynamicLoader.

Definition at line 174 of file DynamicLoaderWindowsDYLD.cpp.

References lldb_private::Status.

◆ CreateInstance()

DynamicLoader * DynamicLoaderWindowsDYLD::CreateInstance ( Process process,
bool  force 
)
static

◆ DidAttach()

void DynamicLoaderWindowsDYLD::DidAttach ( )
overridevirtual

◆ DidLaunch()

void DynamicLoaderWindowsDYLD::DidLaunch ( )
overridevirtual

◆ GetLoadAddress()

lldb::addr_t DynamicLoaderWindowsDYLD::GetLoadAddress ( lldb::ModuleSP  executable)
protected

◆ GetPluginDescriptionStatic()

const char * DynamicLoaderWindowsDYLD::GetPluginDescriptionStatic ( )
static

Definition at line 44 of file DynamicLoaderWindowsDYLD.cpp.

Referenced by Initialize().

◆ GetPluginName()

ConstString DynamicLoaderWindowsDYLD::GetPluginName ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 176 of file DynamicLoaderWindowsDYLD.cpp.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

ConstString DynamicLoaderWindowsDYLD::GetPluginNameStatic ( )
static

◆ GetPluginVersion()

uint32_t DynamicLoaderWindowsDYLD::GetPluginVersion ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 180 of file DynamicLoaderWindowsDYLD.cpp.

◆ GetStepThroughTrampolinePlan()

ThreadPlanSP DynamicLoaderWindowsDYLD::GetStepThroughTrampolinePlan ( Thread thread,
bool  stop_others 
)
overridevirtual

Provides a plan to step through the dynamic loader trampoline for the current state of thread.

Parameters
[in]stop_othersWhether the plan should be set to stop other threads.
Returns
A pointer to the plan (caller owned) or NULL if we are not at such a trampoline.

Implements lldb_private::DynamicLoader.

Definition at line 183 of file DynamicLoaderWindowsDYLD.cpp.

References lldb_private::Disassembler::DisassembleRange(), lldb_private::eVoteNoOpinion, lldb_private::Target::GetArchitecture(), lldb_private::InstructionList::GetInstructionAtIndex(), lldb_private::Thread::GetRegisterContext(), lldb_private::Process::GetTarget(), lldb_private::DynamicLoader::m_process, and pc.

◆ Initialize()

void DynamicLoaderWindowsDYLD::Initialize ( )
static

◆ OnLoadModule()

void DynamicLoaderWindowsDYLD::OnLoadModule ( lldb::ModuleSP  module_sp,
const ModuleSpec  module_spec,
lldb::addr_t  module_addr 
)

◆ OnUnloadModule()

void DynamicLoaderWindowsDYLD::OnUnloadModule ( lldb::addr_t  module_addr)

◆ Terminate()

void DynamicLoaderWindowsDYLD::Terminate ( )
static

The documentation for this class was generated from the following files: