Lines Matching defs:strm
77 bool show_stopped_process_status, Stream &strm) {
95 strm.Printf("%starget #%u%s: %s", prefix_cstr ? prefix_cstr : "", target_idx,
100 strm.Printf(" ( arch=");
101 target_arch.DumpTriple(strm.AsRawOstream());
106 strm.Format("{0}platform={1}", properties++ > 0 ? ", " : " ( ",
118 strm.Printf("%spid=%" PRIu64, properties++ > 0 ? ", " : " ( ", pid);
119 strm.Printf("%sstate=%s", properties++ > 0 ? ", " : " ( ", state_cstr);
122 strm.PutCString(" )\n");
124 strm.EOL();
131 process_sp->GetStatus(strm);
132 process_sp->GetThreadStatus(strm, only_threads_with_stop_reason,
139 bool show_stopped_process_status, Stream &strm) {
143 strm.PutCString("Current targets:\n");
149 show_stopped_process_status, strm);
476 Stream &strm = result.GetOutputStream();
480 show_stopped_process_status, strm) == 0) {
481 strm.PutCString("No targets.\n");
510 Stream &strm = result.GetOutputStream();
512 DumpTargetList(target_list, show_stopped_process_status, strm);
538 Stream &strm = result.GetOutputStream();
540 DumpTargetList(target_list, show_stopped_process_status, strm);
686 auto &strm = result.GetOutputStream();
688 strm.Format("{0}={1}\n", KV->first(), KV->second);
1143 StreamString strm;
1144 strm << old_path << " -> " << new_path;
1145 request.TryCompleteCurrentArg(std::to_string(i), strm.GetString());
1246 static void DumpModuleArchitecture(Stream &strm, Module *module,
1258 strm.Printf("%-*s", width, arch_str.c_str());
1260 strm.PutCString(arch_str);
1264 static void DumpModuleUUID(Stream &strm, Module *module) {
1266 module->GetUUID().Dump(strm);
1268 strm.PutCString(" ");
1272 Stream &strm, Module *module,
1284 strm << "\n\n";
1286 strm << "Line table for " << sc.comp_unit->GetPrimaryFile() << " in `"
1291 &strm, interpreter.GetExecutionContext().GetTargetPtr(),
1294 strm << "No line table";
1302 static void DumpFullpath(Stream &strm, const FileSpec *file_spec_ptr,
1307 strm.Printf("%-*s", width, fullpath.c_str());
1310 file_spec_ptr->Dump(strm.AsRawOstream());
1316 strm.Printf("%-*s", width, "");
1319 static void DumpDirectory(Stream &strm, const FileSpec *file_spec_ptr,
1323 strm.Printf("%-*s", width, file_spec_ptr->GetDirectory().AsCString(""));
1325 file_spec_ptr->GetDirectory().Dump(&strm);
1330 strm.Printf("%-*s", width, "");
1333 static void DumpBasename(Stream &strm, const FileSpec *file_spec_ptr,
1337 strm.Printf("%-*s", width, file_spec_ptr->GetFilename().AsCString(""));
1339 file_spec_ptr->GetFilename().Dump(&strm);
1344 strm.Printf("%-*s", width, "");
1347 static size_t DumpModuleObjfileHeaders(Stream &strm, ModuleList &module_list) {
1354 strm.Format("Dumping headers for {0} module(s).\n", num_modules);
1355 strm.IndentMore();
1359 strm.EOL();
1360 strm.EOL();
1364 objfile->Dump(&strm);
1366 strm.Format("No object file for module: {0:F}\n",
1371 strm.IndentLess();
1375 static void DumpModuleSymtab(CommandInterpreter &interpreter, Stream &strm,
1381 symtab->Dump(&strm, interpreter.GetExecutionContext().GetTargetPtr(),
1385 static void DumpModuleSections(CommandInterpreter &interpreter, Stream &strm,
1390 strm.Printf("Sections for '%s' (%s):\n",
1393 section_list->Dump(strm.AsRawOstream(), strm.GetIndentLevel() + 2,
1400 static bool DumpModuleSymbolFile(Stream &strm, Module *module) {
1403 symbol_file->Dump(strm);
1425 static void DumpDwoFilesTable(Stream &strm,
1427 strm.PutCString("Dwo ID Err Dwo Path");
1428 strm.EOL();
1429 strm.PutCString(
1431 strm.EOL();
1432 dwo_listings.ForEach([&strm](StructuredData::Object *dwo) {
1439 strm.Printf("0x%16.16" PRIx64 " ", dwo_id);
1441 strm.Printf("0x???????????????? ");
1445 strm << "E " << error;
1450 strm << " " << resolved_dwo_path;
1454 strm << "(" << dwo_name << ")";
1458 strm.EOL();
1463 static void DumpOsoFilesTable(Stream &strm,
1465 strm.PutCString("Mod Time Err Oso Path");
1466 strm.EOL();
1467 strm.PutCString("------------------ --- ---------------------");
1468 strm.EOL();
1469 oso_listings.ForEach([&strm](StructuredData::Object *oso) {
1476 strm.Printf("0x%16.16" PRIx32 " ", oso_mod_time);
1480 strm << "E " << error;
1484 strm << " " << oso_path;
1486 strm.EOL();
1493 bool verbose, bool all_ranges, Stream &strm,
1495 strm.IndentMore();
1496 strm.Indent(" Address: ");
1497 so_addr.Dump(&strm, exe_scope, Address::DumpStyleModuleWithFileAddress);
1498 strm.PutCString(" (");
1499 so_addr.Dump(&strm, exe_scope, Address::DumpStyleSectionNameOffset);
1500 strm.PutCString(")\n");
1501 strm.Indent(" Summary: ");
1502 const uint32_t save_indent = strm.GetIndentLevel();
1503 strm.SetIndentLevel(save_indent + 13);
1504 so_addr.Dump(&strm, exe_scope, Address::DumpStyleResolvedDescription,
1506 strm.SetIndentLevel(save_indent);
1509 strm.EOL();
1510 so_addr.Dump(&strm, exe_scope, Address::DumpStyleDetailedSymbolContext,
1513 strm.IndentLess();
1516 static bool LookupAddressInModule(CommandInterpreter &interpreter, Stream &strm,
1537 DumpAddress(exe_scope, so_addr, verbose, all_ranges, strm);
1545 Stream &strm, Module *module,
1570 strm.Indent();
1571 strm.Printf("%u symbols match %s'%s' in ", num_matches,
1573 DumpFullpath(strm, &module->GetFileSpec(), 0);
1574 strm.PutCString(":\n");
1575 strm.IndentMore();
1585 symbol->GetAddressRef(), verbose, all_ranges, strm,
1589 strm.EOL();
1591 strm.IndentMore();
1592 strm.Indent(" Name: ");
1593 strm.PutCStringColorHighlighted(
1598 strm.EOL();
1599 strm.Indent(" Value: ");
1600 strm.Printf("0x%16.16" PRIx64 "\n", symbol->GetRawValue());
1602 strm.Indent(" Size: ");
1603 strm.Printf("0x%16.16" PRIx64 "\n", symbol->GetByteSize());
1605 strm.IndentLess();
1609 strm.IndentLess();
1615 ExecutionContextScope *exe_scope, Stream &strm,
1618 strm.IndentMore();
1622 strm.EOL();
1628 DumpAddress(exe_scope, range.GetBaseAddress(), verbose, all_ranges, strm,
1632 strm.IndentLess();
1636 Stream &strm, Module *module,
1653 strm.Indent();
1654 strm.Printf("%" PRIu64 " match%s found in ", (uint64_t)num_matches,
1656 DumpFullpath(strm, &module->GetFileSpec(), 0);
1657 strm.PutCString(":\n");
1660 strm, sc_list, verbose, all_ranges);
1668 CommandInterpreter &interpreter, Stream &strm,
1688 strm.Indent();
1689 strm.Printf("%" PRIu64 " match%s found in ", num_matches,
1691 DumpFullpath(strm, &module->GetFileSpec(), 0);
1692 strm.PutCString(":\n");
1699 type_sp->GetDescription(&strm, eDescriptionLevelFull, true, target);
1704 strm.EOL();
1705 strm.Printf(" typedef '%s': ",
1708 typedefed_type_sp->GetDescription(&strm, eDescriptionLevelFull, true,
1713 strm.EOL();
1721 Stream &strm, Module &module,
1733 strm.Indent();
1734 strm.PutCString("Best match found in ");
1735 DumpFullpath(strm, &module.GetFileSpec(), 0);
1736 strm.PutCString(":\n");
1743 type_sp->GetDescription(&strm, eDescriptionLevelFull, true, target);
1748 strm.EOL();
1749 strm.Printf(" typedef '%s': ",
1752 typedefed_type_sp->GetDescription(&strm, eDescriptionLevelFull, true,
1758 strm.EOL();
1763 Stream &strm, Module *module,
1772 strm.Indent();
1773 strm.Printf("%u match%s found in ", num_matches,
1775 strm << file_spec;
1777 strm.Printf(":%u", line);
1778 strm << " in ";
1779 DumpFullpath(strm, &module->GetFileSpec(), 0);
1780 strm.PutCString(":\n");
1783 strm, sc_list, verbose, all_ranges);
2593 Stream &strm = result.GetOutputStream();
2597 separate_debug_info_lists_by_module.Dump(strm,
2602 [&result, &strm](StructuredData::Object *obj) {
2627 strm << "Symbol file: " << symfile;
2628 strm.EOL();
2629 strm << "Type: \"" << type << "\"";
2630 strm.EOL();
2632 DumpDwoFilesTable(strm, *files);
2634 DumpOsoFilesTable(strm, *files);
2749 StreamString strm;
2750 module_spec.GetUUID().Dump(strm);
2756 strm.GetData(), module_spec.GetFileSpec().GetPath().c_str(),
2762 strm.GetData(),
2768 strm.GetData());
2773 StreamString strm;
2774 module_spec.GetUUID().Dump(strm);
2777 strm.GetData());
3178 Stream &strm = result.GetOutputStream();
3185 PrintModule(target, module_sp.get(), 0, strm);
3255 const size_t indent = strm.Printf("[%3u] ", image_idx);
3256 PrintModule(target, module, indent, strm);
3277 void PrintModule(Target &target, Module *module, int indent, Stream &strm) {
3279 strm.PutCString("Null module");
3294 strm.PutChar(' ');
3300 DumpModuleArchitecture(strm, module, false, width);
3304 DumpModuleArchitecture(strm, module, true, width);
3308 DumpFullpath(strm, &module->GetFileSpec(), width);
3313 DumpDirectory(strm, &module->GetFileSpec(), width);
3317 DumpBasename(strm, &module->GetFileSpec(), width);
3335 base_addr.Dump(&strm, &target,
3341 strm.Printf("0x%*.*" PRIx64, addr_nibble_width,
3346 strm.Printf("0x%*.*" PRIx64, addr_nibble_width,
3354 base_addr.Dump(&strm, &target, Address::DumpStyleFileAddress);
3358 strm.Printf("%*s", addr_nibble_width + 2, "");
3374 strm.Printf("{%c %*" PRIu64 "}", in_shared_cache, width, (uint64_t)ref_count);
3376 strm.Printf("{%c %" PRIu64 "}", in_shared_cache, (uint64_t)ref_count);
3391 strm.Printf("\n%*s", indent, "");
3393 DumpFullpath(strm, &symfile_spec, width);
3397 strm.Printf("%.*s", width, "<NONE>");
3401 strm.Format("{0:%c}", llvm::fmt_align(module->GetModificationTime(),
3406 strm.Printf("%p", static_cast<void *>(module));
3410 DumpModuleUUID(strm, module);
3420 strm.Printf("(%s)", object_name);
3422 strm.EOL();