Formatting tweaks to loaded image output.

This commit is contained in:
Rene Gollent 2012-11-22 10:57:11 -05:00
parent 3d09339ddd
commit 19ea0235be
1 changed files with 11 additions and 5 deletions

View File

@ -114,12 +114,18 @@ DebugReportGenerator::_DumpLoadedImages(BString& _output)
for (ImageList::ConstIterator it = fTeam->Images().GetIterator(); for (ImageList::ConstIterator it = fTeam->Images().GetIterator();
Image* image = it.Next();) { Image* image = it.Next();) {
const ImageInfo& info = image->Info(); const ImageInfo& info = image->Info();
char buffer[32];
try { try {
data.SetToFormat("\t%s, id: %" B_PRId32", type: %" B_PRId32 ", " target_addr_t textBase = info.TextBase();
"Text: 0x%" B_PRIx64 ", %" B_PRIu64 " bytes, Data: 0x%" target_addr_t dataBase = info.DataBase();
B_PRIx64 ", %" B_PRIu64 " bytes\n", info.Name().String(),
info.ImageID(), info.Type(), info.TextBase(), info.TextSize(), data.SetToFormat("\t%s (%" B_PRId32 ", %s) "
info.DataBase(), info.DataSize()); "Text: 0x%08" B_PRIx64 " - 0x%08" B_PRIx64 ", Data: 0x%08"
B_PRIx64 " - 0x%08" B_PRIx64 "\n", info.Name().String(),
info.ImageID(), UiUtils::ImageTypeToString(info.Type(),
buffer, sizeof(buffer)), textBase,
textBase + info.TextSize(), dataBase,
dataBase + info.DataSize());
_output << data; _output << data;
} catch (...) { } catch (...) {