1
0
Fork 0

DBG: show PEB in memory map

#1882
This commit is contained in:
Duncan Ogilvie 2018-01-28 00:33:33 +01:00
parent 13b8db3a2b
commit ddc97f2a74
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 9 additions and 1 deletions

View File

@ -174,6 +174,7 @@ void MemUpdateMap()
// Get a list of threads for information about Kernel/PEB/TEB/Stack ranges
THREADLIST threadList;
ThreadGetList(&threadList);
auto pebBase = (duint)GetPEBLocation(fdProcessInfo->hProcess);
for(auto & page : pageVector)
{
@ -187,6 +188,13 @@ void MemUpdateMap()
continue;
}
// Mark PEB
if(pageBase == pebBase)
{
strcpy_s(page.info, GuiTranslateText(QT_TRANSLATE_NOOP("DBG", "PEB")));
continue;
}
// Check in threads
for(int i = 0; i < threadList.count; i++)
{
@ -212,7 +220,7 @@ void MemUpdateMap()
sprintf_s(page.info, GuiTranslateText(QT_TRANSLATE_NOOP("DBG", "Thread %X WoW64 TEB")), threadId);
break;
}
#endif // ndef _WIN64
#endif //_WIN64
}
// Mark stack