Go to the documentation of this file.
30 const llvm::Triple &triple_ref =
31 process->GetTarget().GetArchitecture().GetTriple();
32 const llvm::Triple::OSType os_type = triple_ref.getOS();
33 const llvm::Triple::ArchType arch_type = triple_ref.getArch();
34 if (os_type == llvm::Triple::UnknownOS) {
38 case llvm::Triple::hexagon:
39 case llvm::Triple::wasm32:
40 case llvm::Triple::wasm64:
49 Module *exe_module = process->GetTarget().GetExecutableModulePointer();
53 create = (object_file->
GetStrata() == ObjectFile::eStrataRawImage);
87 for (ModuleSP module_sp : module_list.
Modules()) {
90 ObjectFile *image_object_file = module_sp->GetObjectFile();
91 if (image_object_file) {
101 const size_t num_sections = section_list->
GetSize();
103 for (sect_idx = 0; sect_idx < num_sections; ++sect_idx) {
119 section_sp, section_sp->GetFileAddress()))
137 return ThreadPlanSP();
142 error.SetErrorString(
"can't load images on with a static debug session");
156 return "Dynamic loader plug-in that will load any images at the static "
157 "addresses contained in each image.";
virtual ObjectFile * GetObjectFile()
Get the object file representation for the current architecture.
ModuleIterable Modules() const
void LoadAllImagesAtFileAddresses()
Target & GetTarget()
Get the target object pointer for this module.
static llvm::StringRef GetPluginDescriptionStatic()
lldb_private::Status CanLoadImage() override
Ask if it is ok to try and load or unload an shared library (image).
const ModuleList & GetImages() const
Get accessor for the images for this process.
static llvm::raw_ostream & error(Stream &strm)
virtual SectionList * GetSectionList(bool update_module_section_list=true)
Gets the section list for the currently selected architecture (and object for archives).
lldb::addr_t GetSectionLoadAddress(const lldb::SectionSP §ion_sp) const
void DidLaunch() override
Called after attaching a process.
bool SetSectionLoadAddress(const lldb::SectionSP §ion, lldb::addr_t load_addr, bool warn_multiple=false)
lldb::SectionSP GetSectionAtIndex(size_t idx) const
Process * m_process
The process that this dynamic loader plug-in is tracking.
void DidAttach() override
Called after attaching a process.
lldb::ThreadPlanSP GetStepThroughTrampolinePlan(lldb_private::Thread &thread, bool stop_others) override
Provides a plan to step through the dynamic loader trampoline for the current state of thread.
static lldb_private::DynamicLoader * CreateInstance(lldb_private::Process *process, bool force)
void ModulesDidLoad(ModuleList &module_list)
bool AppendIfNeeded(const lldb::ModuleSP &new_module, bool notify=true)
Append a module to the module list, if it is not already there.
SectionLoadList & GetSectionLoadList()
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
#define LLDB_PLUGIN_DEFINE(PluginName)
DynamicLoaderStatic(lldb_private::Process *process)
void SetCanJIT(bool can_jit)
Sets whether executing JIT-compiled code in this process is possible.
static llvm::StringRef GetPluginNameStatic()