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("%sarch=", properties++ > 0 ? ", " : " ( ");
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());
1247 static void DumpModuleArchitecture(Stream &strm, Module *module,
1259 strm.Printf("%-*s", width, arch_str.c_str());
1261 strm.PutCString(arch_str);
1265 static void DumpModuleUUID(Stream &strm, Module *module) {
1267 module->GetUUID().Dump(strm);
1269 strm.PutCString(" ");
1273 Stream &strm, Module *module,
1285 strm << "\n\n";
1287 strm << "Line table for " << sc.comp_unit->GetPrimaryFile() << " in `"
1292 &strm, interpreter.GetExecutionContext().GetTargetPtr(),
1295 strm << "No line table";
1303 static void DumpFullpath(Stream &strm, const FileSpec *file_spec_ptr,
1308 strm.Printf("%-*s", width, fullpath.c_str());
1311 file_spec_ptr->Dump(strm.AsRawOstream());
1317 strm.Printf("%-*s", width, "");
1320 static void DumpDirectory(Stream &strm, const FileSpec *file_spec_ptr,
1324 strm.Printf("%-*s", width, file_spec_ptr->GetDirectory().AsCString(""));
1326 file_spec_ptr->GetDirectory().Dump(&strm);
1331 strm.Printf("%-*s", width, "");
1334 static void DumpBasename(Stream &strm, const FileSpec *file_spec_ptr,
1338 strm.Printf("%-*s", width, file_spec_ptr->GetFilename().AsCString(""));
1340 file_spec_ptr->GetFilename().Dump(&strm);
1345 strm.Printf("%-*s", width, "");
1348 static size_t DumpModuleObjfileHeaders(Stream &strm, ModuleList &module_list) {
1355 strm.Format("Dumping headers for {0} module(s).\n", num_modules);
1356 strm.IndentMore();
1360 strm.EOL();
1361 strm.EOL();
1365 objfile->Dump(&strm);
1367 strm.Format("No object file for module: {0:F}\n",
1372 strm.IndentLess();
1376 static void DumpModuleSymtab(CommandInterpreter &interpreter, Stream &strm,
1382 symtab->Dump(&strm, interpreter.GetExecutionContext().GetTargetPtr(),
1386 static void DumpModuleSections(CommandInterpreter &interpreter, Stream &strm,
1391 strm.Printf("Sections for '%s' (%s):\n",
1394 section_list->Dump(strm.AsRawOstream(), strm.GetIndentLevel() + 2,
1401 static bool DumpModuleSymbolFile(Stream &strm, Module *module) {
1404 symbol_file->Dump(strm);
1426 static void DumpDwoFilesTable(Stream &strm,
1428 strm.PutCString("Dwo ID Err Dwo Path");
1429 strm.EOL();
1430 strm.PutCString(
1432 strm.EOL();
1433 dwo_listings.ForEach([&strm](StructuredData::Object *dwo) {
1440 strm.Printf("0x%16.16" PRIx64 " ", dwo_id);
1442 strm.Printf("0x???????????????? ");
1446 strm << "E " << error;
1451 strm << " " << resolved_dwo_path;
1455 strm << "(" << dwo_name << ")";
1459 strm.EOL();
1464 static void DumpOsoFilesTable(Stream &strm,
1466 strm.PutCString("Mod Time Err Oso Path");
1467 strm.EOL();
1468 strm.PutCString("------------------ --- ---------------------");
1469 strm.EOL();
1470 oso_listings.ForEach([&strm](StructuredData::Object *oso) {
1477 strm.Printf("0x%16.16" PRIx32 " ", oso_mod_time);
1481 strm << "E " << error;
1485 strm << " " << oso_path;
1487 strm.EOL();
1494 bool verbose, bool all_ranges, Stream &strm,
1496 strm.IndentMore();
1497 strm.Indent(" Address: ");
1498 so_addr.Dump(&strm, exe_scope, Address::DumpStyleModuleWithFileAddress);
1499 strm.PutCString(" (");
1500 so_addr.Dump(&strm, exe_scope, Address::DumpStyleSectionNameOffset);
1501 strm.PutCString(")\n");
1502 strm.Indent(" Summary: ");
1503 const uint32_t save_indent = strm.GetIndentLevel();
1504 strm.SetIndentLevel(save_indent + 13);
1505 so_addr.Dump(&strm, exe_scope, Address::DumpStyleResolvedDescription,
1507 strm.SetIndentLevel(save_indent);
1510 strm.EOL();
1511 so_addr.Dump(&strm, exe_scope, Address::DumpStyleDetailedSymbolContext,
1514 strm.IndentLess();
1517 static bool LookupAddressInModule(CommandInterpreter &interpreter, Stream &strm,
1538 DumpAddress(exe_scope, so_addr, verbose, all_ranges, strm);
1546 Stream &strm, Module *module,
1571 strm.Indent();
1572 strm.Printf("%u symbols match %s'%s' in ", num_matches,
1574 DumpFullpath(strm, &module->GetFileSpec(), 0);
1575 strm.PutCString(":\n");
1576 strm.IndentMore();
1586 symbol->GetAddressRef(), verbose, all_ranges, strm,
1590 strm.EOL();
1592 strm.IndentMore();
1593 strm.Indent(" Name: ");
1594 strm.PutCStringColorHighlighted(
1599 strm.EOL();
1600 strm.Indent(" Value: ");
1601 strm.Printf("0x%16.16" PRIx64 "\n", symbol->GetRawValue());
1603 strm.Indent(" Size: ");
1604 strm.Printf("0x%16.16" PRIx64 "\n", symbol->GetByteSize());
1606 strm.IndentLess();
1610 strm.IndentLess();
1616 ExecutionContextScope *exe_scope, Stream &strm,
1619 strm.IndentMore();
1623 strm.EOL();
1629 DumpAddress(exe_scope, range.GetBaseAddress(), verbose, all_ranges, strm,
1633 strm.IndentLess();
1637 Stream &strm, Module *module,
1654 strm.Indent();
1655 strm.Printf("%" PRIu64 " match%s found in ", (uint64_t)num_matches,
1657 DumpFullpath(strm, &module->GetFileSpec(), 0);
1658 strm.PutCString(":\n");
1661 strm, sc_list, verbose, all_ranges);
1669 CommandInterpreter &interpreter, Stream &strm,
1689 strm.Indent();
1690 strm.Printf("%" PRIu64 " match%s found in ", num_matches,
1692 DumpFullpath(strm, &module->GetFileSpec(), 0);
1693 strm.PutCString(":\n");
1700 type_sp->GetDescription(&strm, eDescriptionLevelFull, true, target);
1705 strm.EOL();
1706 strm.Printf(" typedef '%s': ",
1709 typedefed_type_sp->GetDescription(&strm, eDescriptionLevelFull, true,
1714 strm.EOL();
1722 Stream &strm, Module &module,
1734 strm.Indent();
1735 strm.PutCString("Best match found in ");
1736 DumpFullpath(strm, &module.GetFileSpec(), 0);
1737 strm.PutCString(":\n");
1744 type_sp->GetDescription(&strm, eDescriptionLevelFull, true, target);
1749 strm.EOL();
1750 strm.Printf(" typedef '%s': ",
1753 typedefed_type_sp->GetDescription(&strm, eDescriptionLevelFull, true,
1759 strm.EOL();
1764 Stream &strm, Module *module,
1773 strm.Indent();
1774 strm.Printf("%u match%s found in ", num_matches,
1776 strm << file_spec;
1778 strm.Printf(":%u", line);
1779 strm << " in ";
1780 DumpFullpath(strm, &module->GetFileSpec(), 0);
1781 strm.PutCString(":\n");
1784 strm, sc_list, verbose, all_ranges);
2594 Stream &strm = result.GetOutputStream();
2598 separate_debug_info_lists_by_module.Dump(strm,
2603 [&result, &strm](StructuredData::Object *obj) {
2628 strm << "Symbol file: " << symfile;
2629 strm.EOL();
2630 strm << "Type: \"" << type << "\"";
2631 strm.EOL();
2633 DumpDwoFilesTable(strm, *files);
2635 DumpOsoFilesTable(strm, *files);
2750 StreamString strm;
2751 module_spec.GetUUID().Dump(strm);
2757 strm.GetData(), module_spec.GetFileSpec().GetPath().c_str(),
2763 strm.GetData(),
2769 strm.GetData());
2774 StreamString strm;
2775 module_spec.GetUUID().Dump(strm);
2778 strm.GetData());
3187 Stream &strm = result.GetOutputStream();
3195 PrintModule(target, module_sp.get(), 0, strm);
3269 const size_t indent = strm.Printf("[%3u] ", image_idx);
3270 PrintModule(target, module, indent, strm);
3292 void PrintModule(Target *target, Module *module, int indent, Stream &strm) {
3294 strm.PutCString("Null module");
3309 strm.PutChar(' ');
3315 DumpModuleArchitecture(strm, module, false, width);
3319 DumpModuleArchitecture(strm, module, true, width);
3323 DumpFullpath(strm, &module->GetFileSpec(), width);
3328 DumpDirectory(strm, &module->GetFileSpec(), width);
3332 DumpBasename(strm, &module->GetFileSpec(), width);
3351 base_addr.Dump(&strm, target,
3357 strm.Printf("0x%*.*" PRIx64, addr_nibble_width,
3362 strm.Printf("0x%*.*" PRIx64, addr_nibble_width,
3370 base_addr.Dump(&strm, target, Address::DumpStyleFileAddress);
3374 strm.Printf("%*s", addr_nibble_width + 2, "");
3390 strm.Printf("{%c %*" PRIu64 "}", in_shared_cache, width, (uint64_t)ref_count);
3392 strm.Printf("{%c %" PRIu64 "}", in_shared_cache, (uint64_t)ref_count);
3407 strm.Printf("\n%*s", indent, "");
3409 DumpFullpath(strm, &symfile_spec, width);
3413 strm.Printf("%.*s", width, "<NONE>");
3417 strm.Format("{0:%c}", llvm::fmt_align(module->GetModificationTime(),
3422 strm.Printf("%p", static_cast<void *>(module));
3426 DumpModuleUUID(strm, module);
3436 strm.Printf("(%s)", object_name);
3438 strm.EOL();