Error DumpOutputStyle::dumpFileSummary() {
printHeader(P, "Summary");
- ExitOnError Err("Invalid PDB Format");
+ ExitOnError Err("Invalid PDB Format: ");
AutoIndent Indent(P);
P.formatLine("Block Size: {0}", File.getBlockSize());
static Expected<ModuleDebugStreamRef> getModuleDebugStream(PDBFile &File,
uint32_t Index) {
- ExitOnError Err("Unexpected error");
+ ExitOnError Err("Unexpected error: ");
auto &Dbi = Err(File.getPDBDbiStream());
const auto &Modules = Dbi.modules();
namespace {
class StringsAndChecksumsPrinter {
const DebugStringTableSubsectionRef &extractStringTable(PDBFile &File) {
- ExitOnError Err("Unexpected error processing modules");
+ ExitOnError Err("Unexpected error processing modules: ");
return Err(File.getStringTable()).getStringTable();
}
return;
}
- ExitOnError Err("Unexpected error processing modules");
+ ExitOnError Err("Unexpected error processing modules: ");
auto &Stream = Err(File.getPDBDbiStream());
return Error::success();
}
- ExitOnError Err("Unexpected error processing modules");
+ ExitOnError Err("Unexpected error processing modules: ");
auto &Stream = Err(File.getPDBDbiStream());
Error DumpOutputStyle::dumpModuleFiles() {
printHeader(P, "Files");
- ExitOnError Err("Unexpected error processing modules");
+ ExitOnError Err("Unexpected error processing modules: ");
iterateModules(
File, P, 11,
return Error::success();
}
- ExitOnError Err("Unexpected error processing types");
+ ExitOnError Err("Unexpected error processing types: ");
auto &Stream = Err((StreamIdx == StreamTPI) ? File.getPDBTpiStream()
: File.getPDBIpiStream());
return Error::success();
}
- ExitOnError Err("Unexpected error processing symbols");
+ ExitOnError Err("Unexpected error processing symbols: ");
auto &Stream = Err(File.getPDBDbiStream());
P.formatLine("Globals stream not present");
return Error::success();
}
- ExitOnError Err("Error dumping globals stream");
+ ExitOnError Err("Error dumping globals stream: ");
auto &Globals = Err(File.getPDBGlobalsStream());
const GSIHashTable &Table = Globals.getGlobalsTable();
P.formatLine("Publics stream not present");
return Error::success();
}
- ExitOnError Err("Error dumping publics stream");
+ ExitOnError Err("Error dumping publics stream: ");
auto &Publics = Err(File.getPDBPublicsStream());
const GSIHashTable &PublicsTable = Publics.getPublicsTable();
Error DumpOutputStyle::dumpSectionContribs() {
printHeader(P, "Section Contributions");
- ExitOnError Err("Error dumping publics stream");
+ ExitOnError Err("Error dumping publics stream: ");
AutoIndent Indent(P);
if (!File.hasPDBDbiStream()) {
Error DumpOutputStyle::dumpSectionMap() {
printHeader(P, "Section Map");
- ExitOnError Err("Error dumping section map");
+ ExitOnError Err("Error dumping section map: ");
AutoIndent Indent(P);
if (!File.hasPDBDbiStream()) {