Lines Matching refs:module

668     // global shared module list
959 // Didn't find matching shlib/module in target...
986 // Get all global variables for this module
1286 static void DumpModuleArchitecture(Stream &strm, Module *module,
1288 if (module) {
1292 module->GetArchitecture().DumpTriple(arch_strm.AsRawOstream());
1294 arch_strm.PutCString(module->GetArchitecture().GetArchitectureName());
1304 static void DumpModuleUUID(Stream &strm, Module *module) {
1305 if (module && module->GetUUID().IsValid())
1306 module->GetUUID().Dump(&strm);
1312 Stream &strm, Module *module,
1316 if (module) {
1318 num_matches = module->ResolveSymbolContextsForFileSpec(
1328 << module->GetFileSpec().GetFilename() << "\n";
1392 strm.Printf("Dumping headers for %" PRIu64 " module(s).\n",
1396 Module *module = module_list.GetModulePointerAtIndexUnlocked(image_idx);
1397 if (module) {
1402 ObjectFile *objfile = module->GetObjectFile();
1406 strm.Format("No object file for module: {0:F}\n",
1407 module->GetFileSpec());
1417 Module *module, SortOrder sort_order,
1419 if (!module)
1421 if (Symtab *symtab = module->GetSymtab())
1427 Module *module) {
1428 if (module) {
1429 SectionList *section_list = module->GetSectionList();
1432 module->GetSpecificationDescription().c_str(),
1433 module->GetArchitecture().GetArchitectureName());
1443 static bool DumpModuleSymbolFile(Stream &strm, Module *module) {
1444 if (module) {
1445 if (SymbolFile *symbol_file = module->GetSymbolFile(true)) {
1475 Module *module, uint32_t resolve_mask,
1478 if (module) {
1486 else if (so_addr.GetModule().get() != module)
1489 if (!module->ResolveFileAddress(addr, so_addr))
1525 Stream &strm, Module *module,
1528 if (!module)
1531 Symtab *symtab = module->GetSymtab();
1552 DumpFullpath(strm, &module->GetFileSpec(), 0);
1589 Stream &strm, Module *module,
1593 if (module && name && name[0]) {
1598 module->FindFunctions(function_name_regex, include_symbols,
1602 module->FindFunctions(function_name, nullptr, eFunctionNameTypeAuto,
1610 DumpFullpath(strm, &module->GetFileSpec(), 0);
1622 Module *module, const char *name_cstr,
1625 if (module && name_cstr && name_cstr[0]) {
1632 module->FindTypes(name, name_is_fully_qualified, max_num_matches,
1641 DumpFullpath(strm, &module->GetFileSpec(), 0);
1669 Module &module, const char *name_cstr,
1677 module.FindTypes(name, name_is_fully_qualified, max_num_matches,
1685 DumpFullpath(strm, &module.GetFileSpec(), 0);
1712 Stream &strm, Module *module,
1716 if (module && file_spec) {
1718 const uint32_t num_matches = module->ResolveSymbolContextsForFileSpec(
1728 DumpFullpath(strm, &module->GetFileSpec(), 0);
1754 Module *module = Module::GetAllocatedModuleAtIndex(image_idx);
1756 if (module) {
1757 if (module->MatchesModuleSpec(module_spec)) {
1758 module_sp = module->shared_from_this();
1768 // Not found in our module list for our target, check the main shared
1769 // module list in case it is a extra file used somewhere else
1784 // A base command object class that can auto complete with module file
1824 // A base command object class that can auto complete with module source
2048 Module *module = module_list.GetModulePointerAtIndex(i);
2049 if (module) {
2057 DumpModuleSymtab(m_interpreter, result.GetOutputStream(), module,
2137 Module *module = module_list.GetModulePointerAtIndex(i);
2138 if (module) {
2141 module);
2175 "Dump the clang ast for a given module's symbol file.",
2296 Module *module = module_list.GetModulePointerAtIndex(i);
2297 if (module) {
2298 if (DumpModuleSymbolFile(result.GetOutputStream(), module))
2460 "Add a new module to the current target's modules.",
2461 "target modules add [<module>]",
2575 result.AppendErrorWithFormat("unsupported module: %s",
2588 "invalid module path '%s' with resolved path '%s'\n",
2592 result.AppendErrorWithFormat("invalid module path '%s'\n",
2616 "module.",
2617 "target modules load [--file <module> --uuid <uuid>] <sect-name> "
2622 "Fullpath or basename for module to load.", ""),
2682 "more than 1 module matched by name '%s'\n", arg_cstr);
2686 result.AppendErrorWithFormat("no object file for module '%s'\n",
2705 Module *module = matching_modules.GetModulePointerAtIndex(0);
2706 if (module) {
2707 ObjectFile *objfile = module->GetObjectFile();
2709 SectionList *section_list = module->GetSectionList();
2717 module->SetLoadAddress(*target, slide, slide_is_offset,
2830 module->GetFileSpec().GetPath(path, sizeof(path));
2836 module->GetFileSpec().GetPath(path, sizeof(path));
2837 result.AppendErrorWithFormat("no object file for module '%s'\n",
2845 result.AppendErrorWithFormat("invalid module '%s'.\n", path);
2847 result.AppendError("no module spec");
2879 result.AppendError("either the \"--file <module>\" or the \"--uuid "
2959 // Define a local module list here to ensure it lives longer than any
2988 "Couldn't find module matching address: 0x%" PRIx64 ".",
2994 "Couldn't find module containing address: 0x%" PRIx64 ".",
3010 // AllocationModuleCollectionMutex when accessing the global module list
3056 Module *module;
3059 module = module_sp.get();
3061 module = Module::GetAllocatedModuleAtIndex(image_idx);
3062 module_sp = module->shared_from_this();
3066 PrintModule(target, module, indent, strm);
3073 "the global module list has no matching modules");
3078 result.AppendError("the global module list is empty");
3090 void PrintModule(Target *target, Module *module, int indent, Stream &strm) {
3091 if (module == nullptr) {
3092 strm.PutCString("Null module");
3113 DumpModuleArchitecture(strm, module, false, width);
3117 DumpModuleArchitecture(strm, module, true, width);
3121 DumpFullpath(strm, &module->GetFileSpec(), width);
3126 DumpDirectory(strm, &module->GetFileSpec(), width);
3130 DumpBasename(strm, &module->GetFileSpec(), width);
3142 ObjectFile *objfile = module->GetObjectFile();
3178 ModuleSP module_sp(module->shared_from_this());
3191 if (const SymbolFile *symbol_file = module->GetSymbolFile()) {
3195 // Dump symbol file only if different from module file
3196 if (!symfile_spec || symfile_spec == module->GetFileSpec()) {
3211 strm.Format("{0:%c}", llvm::fmt_align(module->GetModificationTime(),
3216 strm.Printf("%p", static_cast<void *>(module));
3220 DumpModuleUUID(strm, module);
3228 const char *object_name = module->GetObjectName().GetCString();
3760 bool LookupInModule(CommandInterpreter &interpreter, Module *module,
3766 m_interpreter, result.GetOutputStream(), module,
3781 module, m_options.m_str.c_str(),
3792 m_interpreter, result.GetOutputStream(), module,
3805 m_interpreter, result.GetOutputStream(), module,
3819 if (LookupTypeInModule(m_interpreter, result.GetOutputStream(), module,
3900 Module *module = module_list.GetModulePointerAtIndex(j);
3901 if (module) {
3902 if (LookupInModule(m_interpreter, module, result, syntax_error)) {
3934 "Commands for managing module search paths for a target.",
4003 "to specify a module to download symbols for.",
4010 "Fullpath or basename for module to find debug symbols for."),
4056 // We now have a module that represents a symbol file that can be used
4057 // for a module that might exist in the current target, so we need to
4058 // find that module in the target
4062 // First extract all module specs from the symbol file
4066 // Now extract the module spec that matches the target architecture
4084 // No matches yet, iterate through the module specs to find a UUID
4138 // The module has not yet created its symbol vendor, we can just give
4139 // the existing target module the symfile path to use for when it
4155 // Let clients know something changed in the module if it is
4169 "unable to load scripting data for module %s - error "
4195 "symbol file '%s'%s does not match any existing module%s\n",
4241 result.AppendError("frame has no module");
4350 "invalid module path '%s' with resolved path '%s'\n",
4354 result.AppendErrorWithFormat("invalid module path '%s'\n",