MM - print resource bit when dumping handle info

This commit is contained in:
Kelvin Sherlock 2013-08-15 23:39:08 -04:00
parent 99a5ed86f8
commit d6d30ba81e

View File

@ -158,12 +158,13 @@ namespace MM
if (iter != HandleMap.end()) if (iter != HandleMap.end())
{ {
const HandleInfo &info = iter->second; const HandleInfo &info = iter->second;
printf("Handle $%08x Pointer: $%08x Size: $%08x Flags: %c %c\n", printf("Handle $%08x Pointer: $%08x Size: $%08x Flags: %c %c %c\n",
iter->first, iter->first,
info.address, info.address,
info.size, info.size,
info.locked ? 'L' : ' ', info.locked ? 'L' : ' ',
info.purgeable ? 'P' : ' ' info.purgeable ? 'P' : ' ',
info.resource ? 'R' : ' '
); );
return; return;
} }
@ -182,12 +183,13 @@ namespace MM
if (!info.size) end++; if (!info.size) end++;
if (address >= begin && address < end) if (address >= begin && address < end)
{ {
printf("Handle $%08x Pointer: $%08x Size: $%08x Flags: %c %c\n", printf("Handle $%08x Pointer: $%08x Size: $%08x Flags: %c %c %c\n",
kv.first, kv.first,
info.address, info.address,
info.size, info.size,
info.locked ? 'L' : ' ', info.locked ? 'L' : ' ',
info.purgeable ? 'P' : ' ' info.purgeable ? 'P' : ' ',
info.resource ? 'R' : ' '
); );
return; return;
} }
@ -206,9 +208,14 @@ namespace MM
{ {
const auto h = kv.first; const auto h = kv.first;
const auto & info = kv.second; const auto & info = kv.second;
fprintf(stdout, "%08x %08x %08x %c %c\n", fprintf(stdout, "%08x %08x %08x %c %c %c\n",
h, info.address, info.size, h,
info.locked? 'L' : ' ', info.purgeable? 'P' : ' '); info.address,
info.size,
info.locked? 'L' : ' ',
info.purgeable? 'P' : ' ',
info.resource ? 'R' : ' '
);
} }
} }