Lines Matching refs:strm
73 bool show_stopped_process_status, Stream &strm) { in DumpTargetInfo() argument
85 strm.Printf("%starget #%u: %s", prefix_cstr ? prefix_cstr : "", target_idx, in DumpTargetInfo()
90 strm.Printf("%sarch=", properties++ > 0 ? ", " : " ( "); in DumpTargetInfo()
91 target_arch.DumpTriple(strm.AsRawOstream()); in DumpTargetInfo()
96 strm.Format("{0}platform={1}", properties++ > 0 ? ", " : " ( ", in DumpTargetInfo()
108 strm.Printf("%spid=%" PRIu64, properties++ > 0 ? ", " : " ( ", pid); in DumpTargetInfo()
109 strm.Printf("%sstate=%s", properties++ > 0 ? ", " : " ( ", state_cstr); in DumpTargetInfo()
112 strm.PutCString(" )\n"); in DumpTargetInfo()
114 strm.EOL(); in DumpTargetInfo()
121 process_sp->GetStatus(strm); in DumpTargetInfo()
122 process_sp->GetThreadStatus(strm, only_threads_with_stop_reason, in DumpTargetInfo()
129 bool show_stopped_process_status, Stream &strm) { in DumpTargetList() argument
133 strm.PutCString("Current targets:\n"); in DumpTargetList()
139 show_stopped_process_status, strm); in DumpTargetList()
477 Stream &strm = result.GetOutputStream(); in DoExecute() local
481 show_stopped_process_status, strm) == 0) { in DoExecute()
482 strm.PutCString("No targets.\n"); in DoExecute()
513 Stream &strm = result.GetOutputStream(); in DoExecute() local
515 DumpTargetList(target_list, show_stopped_process_status, strm); in DoExecute()
673 auto &strm = result.GetOutputStream(); in DoExecute() local
675 strm.Format("{0}={1}\n", KV->first(), KV->second); in DoExecute()
1154 StreamString strm; in HandleArgumentCompletion() local
1155 strm << old_path << " -> " << new_path; in HandleArgumentCompletion()
1156 request.TryCompleteCurrentArg(std::to_string(i), strm.GetString()); in HandleArgumentCompletion()
1274 static void DumpModuleArchitecture(Stream &strm, Module *module, in DumpModuleArchitecture() argument
1286 strm.Printf("%-*s", width, arch_str.c_str()); in DumpModuleArchitecture()
1288 strm.PutCString(arch_str); in DumpModuleArchitecture()
1292 static void DumpModuleUUID(Stream &strm, Module *module) { in DumpModuleUUID() argument
1294 module->GetUUID().Dump(&strm); in DumpModuleUUID()
1296 strm.PutCString(" "); in DumpModuleUUID()
1300 Stream &strm, Module *module, in DumpCompileUnitLineTable() argument
1313 strm << "\n\n"; in DumpCompileUnitLineTable()
1315 strm << "Line table for " << sc.comp_unit->GetPrimaryFile() << " in `" in DumpCompileUnitLineTable()
1320 &strm, interpreter.GetExecutionContext().GetTargetPtr(), in DumpCompileUnitLineTable()
1323 strm << "No line table"; in DumpCompileUnitLineTable()
1330 static void DumpFullpath(Stream &strm, const FileSpec *file_spec_ptr, in DumpFullpath() argument
1335 strm.Printf("%-*s", width, fullpath.c_str()); in DumpFullpath()
1338 file_spec_ptr->Dump(strm.AsRawOstream()); in DumpFullpath()
1344 strm.Printf("%-*s", width, ""); in DumpFullpath()
1347 static void DumpDirectory(Stream &strm, const FileSpec *file_spec_ptr, in DumpDirectory() argument
1351 strm.Printf("%-*s", width, file_spec_ptr->GetDirectory().AsCString("")); in DumpDirectory()
1353 file_spec_ptr->GetDirectory().Dump(&strm); in DumpDirectory()
1358 strm.Printf("%-*s", width, ""); in DumpDirectory()
1361 static void DumpBasename(Stream &strm, const FileSpec *file_spec_ptr, in DumpBasename() argument
1365 strm.Printf("%-*s", width, file_spec_ptr->GetFilename().AsCString("")); in DumpBasename()
1367 file_spec_ptr->GetFilename().Dump(&strm); in DumpBasename()
1372 strm.Printf("%-*s", width, ""); in DumpBasename()
1375 static size_t DumpModuleObjfileHeaders(Stream &strm, ModuleList &module_list) { in DumpModuleObjfileHeaders() argument
1382 strm.Format("Dumping headers for {0} module(s).\n", num_modules); in DumpModuleObjfileHeaders()
1383 strm.IndentMore(); in DumpModuleObjfileHeaders()
1387 strm.EOL(); in DumpModuleObjfileHeaders()
1388 strm.EOL(); in DumpModuleObjfileHeaders()
1392 objfile->Dump(&strm); in DumpModuleObjfileHeaders()
1394 strm.Format("No object file for module: {0:F}\n", in DumpModuleObjfileHeaders()
1399 strm.IndentLess(); in DumpModuleObjfileHeaders()
1403 static void DumpModuleSymtab(CommandInterpreter &interpreter, Stream &strm, in DumpModuleSymtab() argument
1409 symtab->Dump(&strm, interpreter.GetExecutionContext().GetTargetPtr(), in DumpModuleSymtab()
1413 static void DumpModuleSections(CommandInterpreter &interpreter, Stream &strm, in DumpModuleSections() argument
1418 strm.Printf("Sections for '%s' (%s):\n", in DumpModuleSections()
1421 section_list->Dump(strm.AsRawOstream(), strm.GetIndentLevel() + 2, in DumpModuleSections()
1428 static bool DumpModuleSymbolFile(Stream &strm, Module *module) { in DumpModuleSymbolFile() argument
1431 symbol_file->Dump(strm); in DumpModuleSymbolFile()
1440 Stream &strm) { in DumpAddress() argument
1441 strm.IndentMore(); in DumpAddress()
1442 strm.Indent(" Address: "); in DumpAddress()
1443 so_addr.Dump(&strm, exe_scope, Address::DumpStyleModuleWithFileAddress); in DumpAddress()
1444 strm.PutCString(" ("); in DumpAddress()
1445 so_addr.Dump(&strm, exe_scope, Address::DumpStyleSectionNameOffset); in DumpAddress()
1446 strm.PutCString(")\n"); in DumpAddress()
1447 strm.Indent(" Summary: "); in DumpAddress()
1448 const uint32_t save_indent = strm.GetIndentLevel(); in DumpAddress()
1449 strm.SetIndentLevel(save_indent + 13); in DumpAddress()
1450 so_addr.Dump(&strm, exe_scope, Address::DumpStyleResolvedDescription); in DumpAddress()
1451 strm.SetIndentLevel(save_indent); in DumpAddress()
1454 strm.EOL(); in DumpAddress()
1455 so_addr.Dump(&strm, exe_scope, Address::DumpStyleDetailedSymbolContext, in DumpAddress()
1458 strm.IndentLess(); in DumpAddress()
1461 static bool LookupAddressInModule(CommandInterpreter &interpreter, Stream &strm, in LookupAddressInModule() argument
1482 DumpAddress(exe_scope, so_addr, verbose, all_ranges, strm); in LookupAddressInModule()
1512 Stream &strm, Module *module, in LookupSymbolInModule() argument
1536 strm.Indent(); in LookupSymbolInModule()
1537 strm.Printf("%u symbols match %s'%s' in ", num_matches, in LookupSymbolInModule()
1539 DumpFullpath(strm, &module->GetFileSpec(), 0); in LookupSymbolInModule()
1540 strm.PutCString(":\n"); in LookupSymbolInModule()
1541 strm.IndentMore(); in LookupSymbolInModule()
1547 symbol->GetAddressRef(), verbose, all_ranges, strm); in LookupSymbolInModule()
1550 strm.IndentLess(); in LookupSymbolInModule()
1556 Stream &strm, SymbolContextList &sc_list, in DumpSymbolContextList() argument
1558 strm.IndentMore(); in DumpSymbolContextList()
1569 DumpAddress(exe_scope, range.GetBaseAddress(), verbose, all_ranges, strm); in DumpSymbolContextList()
1572 strm.IndentLess(); in DumpSymbolContextList()
1576 Stream &strm, Module *module, in LookupFunctionInModule() argument
1593 strm.Indent(); in LookupFunctionInModule()
1594 strm.Printf("%" PRIu64 " match%s found in ", (uint64_t)num_matches, in LookupFunctionInModule()
1596 DumpFullpath(strm, &module->GetFileSpec(), 0); in LookupFunctionInModule()
1597 strm.PutCString(":\n"); in LookupFunctionInModule()
1600 strm, sc_list, verbose, all_ranges); in LookupFunctionInModule()
1608 CommandInterpreter &interpreter, Stream &strm, in LookupTypeInModule() argument
1626 strm.Indent(); in LookupTypeInModule()
1627 strm.Printf("%" PRIu64 " match%s found in ", num_matches, in LookupTypeInModule()
1629 DumpFullpath(strm, &module->GetFileSpec(), 0); in LookupTypeInModule()
1630 strm.PutCString(":\n"); in LookupTypeInModule()
1637 type_sp->GetDescription(&strm, eDescriptionLevelFull, true, target); in LookupTypeInModule()
1642 strm.EOL(); in LookupTypeInModule()
1643 strm.Printf(" typedef '%s': ", in LookupTypeInModule()
1646 typedefed_type_sp->GetDescription(&strm, eDescriptionLevelFull, true, in LookupTypeInModule()
1652 strm.EOL(); in LookupTypeInModule()
1658 Stream &strm, Module &module, in LookupTypeHere() argument
1672 strm.Indent(); in LookupTypeHere()
1673 strm.PutCString("Best match found in "); in LookupTypeHere()
1674 DumpFullpath(strm, &module.GetFileSpec(), 0); in LookupTypeHere()
1675 strm.PutCString(":\n"); in LookupTypeHere()
1682 type_sp->GetDescription(&strm, eDescriptionLevelFull, true, target); in LookupTypeHere()
1687 strm.EOL(); in LookupTypeHere()
1688 strm.Printf(" typedef '%s': ", in LookupTypeHere()
1691 typedefed_type_sp->GetDescription(&strm, eDescriptionLevelFull, true, in LookupTypeHere()
1697 strm.EOL(); in LookupTypeHere()
1702 Stream &strm, Module *module, in LookupFileAndLineInModule() argument
1711 strm.Indent(); in LookupFileAndLineInModule()
1712 strm.Printf("%u match%s found in ", num_matches, in LookupFileAndLineInModule()
1714 strm << file_spec; in LookupFileAndLineInModule()
1716 strm.Printf(":%u", line); in LookupFileAndLineInModule()
1717 strm << " in "; in LookupFileAndLineInModule()
1718 DumpFullpath(strm, &module->GetFileSpec(), 0); in LookupFileAndLineInModule()
1719 strm.PutCString(":\n"); in LookupFileAndLineInModule()
1722 strm, sc_list, verbose, all_ranges); in LookupFileAndLineInModule()
2520 StreamString strm; in DoExecute() local
2521 module_spec.GetUUID().Dump(&strm); in DoExecute()
2527 strm.GetData(), module_spec.GetFileSpec().GetPath().c_str(), in DoExecute()
2533 strm.GetData(), in DoExecute()
2539 strm.GetData()); in DoExecute()
2544 StreamString strm; in DoExecute() local
2545 module_spec.GetUUID().Dump(&strm); in DoExecute()
2548 strm.GetData()); in DoExecute()
2962 Stream &strm = result.GetOutputStream(); in DoExecute() local
2970 PrintModule(target, module_sp.get(), 0, strm); in DoExecute()
3044 const size_t indent = strm.Printf("[%3u] ", image_idx); in DoExecute()
3045 PrintModule(target, module, indent, strm); in DoExecute()
3068 void PrintModule(Target *target, Module *module, int indent, Stream &strm) { in PrintModule() argument
3070 strm.PutCString("Null module"); in PrintModule()
3085 strm.PutChar(' '); in PrintModule()
3091 DumpModuleArchitecture(strm, module, false, width); in PrintModule()
3095 DumpModuleArchitecture(strm, module, true, width); in PrintModule()
3099 DumpFullpath(strm, &module->GetFileSpec(), width); in PrintModule()
3104 DumpDirectory(strm, &module->GetFileSpec(), width); in PrintModule()
3108 DumpBasename(strm, &module->GetFileSpec(), width); in PrintModule()
3127 base_addr.Dump(&strm, target, in PrintModule()
3133 strm.Printf("0x%*.*" PRIx64, addr_nibble_width, in PrintModule()
3138 strm.Printf("0x%*.*" PRIx64, addr_nibble_width, in PrintModule()
3146 base_addr.Dump(&strm, target, Address::DumpStyleFileAddress); in PrintModule()
3150 strm.Printf("%*s", addr_nibble_width + 2, ""); in PrintModule()
3162 strm.Printf("{%*" PRIu64 "}", width, (uint64_t)ref_count); in PrintModule()
3164 strm.Printf("{%" PRIu64 "}", (uint64_t)ref_count); in PrintModule()
3179 strm.Printf("\n%*s", indent, ""); in PrintModule()
3181 DumpFullpath(strm, &symfile_spec, width); in PrintModule()
3185 strm.Printf("%.*s", width, "<NONE>"); in PrintModule()
3189 strm.Format("{0:%c}", llvm::fmt_align(module->GetModificationTime(), in PrintModule()
3194 strm.Printf("%p", static_cast<void *>(module)); in PrintModule()
3198 DumpModuleUUID(strm, module); in PrintModule()
3208 strm.Printf("(%s)", object_name); in PrintModule()
3210 strm.EOL(); in PrintModule()