Lines Matching defs:module

655             // the global shared module list
977 // Didn't find matching shlib/module in target...
1007 // Get all global variables for this module
1397 DumpModuleArchitecture (Stream &strm, Module *module, bool full_triple, uint32_t width)
1399 if (module)
1403 arch_cstr = module->GetArchitecture().GetTriple().str().c_str();
1405 arch_cstr = module->GetArchitecture().GetArchitectureName();
1414 DumpModuleUUID (Stream &strm, Module *module)
1416 if (module && module->GetUUID().IsValid())
1417 module->GetUUID().Dump (&strm);
1425 Module *module,
1430 if (module)
1433 num_matches = module->ResolveSymbolContextsForFileSpec (file_spec,
1448 << module->GetFileSpec().GetFilename() << "\n";
1518 DumpModuleSymtab (CommandInterpreter &interpreter, Stream &strm, Module *module, SortOrder sort_order)
1520 if (module)
1522 SymbolVendor *sym_vendor = module->GetSymbolVendor ();
1533 DumpModuleSections (CommandInterpreter &interpreter, Stream &strm, Module *module)
1535 if (module)
1537 SectionList *section_list = module->GetSectionList();
1541 module->GetSpecificationDescription().c_str(),
1542 module->GetArchitecture().GetArchitectureName());
1551 DumpModuleSymbolVendor (Stream &strm, Module *module)
1553 if (module)
1555 SymbolVendor *symbol_vendor = module->GetSymbolVendor(true);
1591 Module *module,
1597 if (module)
1607 else if (so_addr.GetModule().get() != module)
1612 if (!module->ResolveFileAddress (addr, so_addr))
1643 LookupSymbolInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, const char *name, bool name_is_regex, bool verbose)
1645 if (module)
1649 SymbolVendor *sym_vendor = module->GetSymbolVendor ();
1677 DumpFullpath (strm, &module->GetFileSpec(), 0);
1730 Module *module,
1737 if (module && name && name[0])
1745 num_matches = module->FindFunctions (function_name_regex,
1754 num_matches = module->FindFunctions (function_name,
1767 DumpFullpath (strm, &module->GetFileSpec(), 0);
1779 Module *module,
1783 if (module && name_cstr && name_cstr[0])
1792 num_matches = module->FindTypes(sc, name, name_is_fully_qualified, max_num_matches, type_list);
1798 DumpFullpath (strm, &module->GetFileSpec(), 0);
1882 Module *module,
1888 if (module && file_spec)
1891 const uint32_t num_matches = module->ResolveSymbolContextsForFileSpec(file_spec, line, check_inlines,
1901 DumpFullpath (strm, &module->GetFileSpec(), 0);
1932 Module *module = Module::GetAllocatedModuleAtIndex(image_idx);
1934 if (module)
1936 if (module->MatchesModuleSpec (module_spec))
1938 module_sp = module->shared_from_this();
1950 // Not found in our module list for our target, check the main
1951 // shared module list in case it is a extra file used somewhere
1971 // A base command object class that can auto complete with module file
2014 // Arguments are the standard module completer.
2033 // A base command object class that can auto complete with module source
2237 Module *module = module_list.GetModulePointerAtIndex(i);
2238 if (module)
2246 DumpModuleSymtab (m_interpreter, result.GetOutputStream(), module, m_options.m_sort_order);
2362 Module *module = module_list.GetModulePointerAtIndex(i);
2363 if (module)
2366 DumpModuleSections (m_interpreter, result.GetOutputStream(), module);
2470 Module *module = module_list.GetModulePointerAtIndex(i);
2471 if (module)
2473 if (DumpModuleSymbolVendor (result.GetOutputStream(), module))
2616 "Add a new module to the current target's modules.",
2617 "target modules add [<module>]"),
2773 result.AppendErrorWithFormat ("unsupported module: %s", path);
2791 result.AppendErrorWithFormat ("invalid module path '%s' with resolved path '%s'\n", path, resolved_path);
2795 result.AppendErrorWithFormat ("invalid module path '%s'\n", path);
2821 "Set the load addresses for one or more sections in a target module.",
2822 "target modules load [--file <module> --uuid <uuid>] <sect-name> <address> [<sect-name> <address> ....]"),
2824 m_file_option (LLDB_OPT_SET_1, false, "file", 'f', 0, eArgTypeFilename, "Fullpath or basename for module to load."),
2882 Module *module = matching_modules.GetModulePointerAtIndex(0);
2883 if (module)
2885 ObjectFile *objfile = module->GetObjectFile();
2888 SectionList *section_list = module->GetSectionList();
2898 module->SetLoadAddress (*target, slide, slide_is_offset, changed);
2979 module->GetFileSpec().GetPath (path, sizeof(path));
2986 module->GetFileSpec().GetPath (path, sizeof(path));
2987 result.AppendErrorWithFormat ("no object file for module '%s'\n", path);
2997 result.AppendErrorWithFormat ("invalid module '%s'.\n", path);
3000 result.AppendError ("no module spec");
3041 result.AppendError ("either the \"--file <module>\" or the \"--uuid <uuid>\" option must be specified.\n");
3157 // Define a local module list here to ensure it lives longer than any "locker"
3193 result.AppendErrorWithFormat ("Couldn't find module matching address: 0x%" PRIx64 ".", m_options.m_module_addr);
3199 result.AppendErrorWithFormat ("Couldn't find module containing address: 0x%" PRIx64 ".", m_options.m_module_addr);
3214 // the global module list directly.
3261 Module *module;
3265 module = module_sp.get();
3269 module = Module::GetAllocatedModuleAtIndex(image_idx);
3270 module_sp = module->shared_from_this();
3274 PrintModule (target, module, indent, strm);
3284 result.AppendError ("the global module list has no matching modules");
3291 result.AppendError ("the global module list is empty");
3303 PrintModule (Target *target, Module *module, int indent, Stream &strm)
3306 if (module == NULL)
3308 strm.PutCString("Null module");
3332 DumpModuleArchitecture (strm, module, false, width);
3336 DumpModuleArchitecture (strm, module, true, width);
3340 DumpFullpath (strm, &module->GetFileSpec(), width);
3345 DumpDirectory (strm, &module->GetFileSpec(), width);
3349 DumpBasename (strm, &module->GetFileSpec(), width);
3359 ObjectFile *objfile = module->GetObjectFile ();
3398 ModuleSP module_sp (module->shared_from_this());
3414 SymbolVendor *symbol_vendor = module->GetSymbolVendor();
3423 // Dump symbol file only if different from module file
3424 if (!symfile_spec || symfile_spec == module->GetFileSpec())
3442 module->GetModificationTime().Dump(&strm, width);
3446 strm.Printf("%p", module);
3450 DumpModuleUUID(strm, module);
3460 const char *object_name = module->GetObjectName().GetCString();
3484 { LLDB_OPT_SET_1, false, "mod-time", 'm', OptionParser::eOptionalArgument, NULL, 0, eArgTypeWidth, "Display the modification time with optional width of the module."},
3485 { LLDB_OPT_SET_1, false, "ref-count", 'r', OptionParser::eOptionalArgument, NULL, 0, eArgTypeWidth, "Display the reference count if the module is still in the shared module cache."},
3486 { LLDB_OPT_SET_1, false, "pointer", 'p', OptionParser::eOptionalArgument, NULL, 0, eArgTypeNone, "Display the module pointer."},
3487 { LLDB_OPT_SET_1, false, "global", 'g', OptionParser::eNoArgument, NULL, 0, eArgTypeNone, "Display the modules from the global module list, not just the current target."},
3994 LookupInModule (CommandInterpreter &interpreter, Module *module, CommandReturnObject &result, bool &syntax_error)
4003 module,
4020 module,
4037 module,
4055 module,
4074 module,
4172 Module *module = module_list.GetModulePointerAtIndex(j);
4173 if (module)
4175 if (LookupInModule (m_interpreter, module, result, syntax_error))
4298 "Add a debug symbol file to one of the target's current modules by specifying a path to a debug symbols file, or using the options to specify a module to download symbols for.",
4301 m_file_option (LLDB_OPT_SET_1, false, "shlib", 's', CommandCompletions::eModuleCompletion, eArgTypeShlibName, "Fullpath or basename for module to find debug symbols for."),
4366 // We now have a module that represents a symbol file
4367 // that can be used for a module that might exist in the
4368 // current target, so we need to find that module in the
4373 // First extract all module specs from the symbol file
4377 // Now extract the module spec that matches the target architecture
4395 // No matches yet, iterate through the module specs to find a UUID value that
4444 // The module has not yet created its symbol vendor, we can just
4445 // give the existing target module the symfile path to use for
4466 // Let clients know something changed in the module
4478 result.AppendWarningWithFormat("unable to load scripting data for module %s - error reported was %s",
4498 result.AppendErrorWithFormat ("symbol file '%s' (%s) does not match any existing module%s\n",
4507 result.AppendErrorWithFormat ("symbol file '%s' does not match any existing module%s\n",
4565 result.AppendError ("frame has no module");
4693 result.AppendErrorWithFormat ("invalid module path '%s' with resolved path '%s'\n", symfile_path, resolved_symfile_path);
4697 result.AppendErrorWithFormat ("invalid module path '%s'\n", symfile_path);
5099 "Set the module within which the stop-hook is to be run."},