1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed crash evaluating registers when debug module hasn't loaded

This commit is contained in:
Brian Fiete 2020-07-19 05:48:48 -07:00
parent 912fdbe195
commit e13b24cd30

View file

@ -8732,8 +8732,8 @@ DbgTypedValue WinDebugger::GetRegister(const StringImpl& regName, DbgLanguage la
}
}
#endif
auto dbgModule = mDebugTarget->GetMainDbgModule();
auto dbgModule = mEmptyDebugTarget->GetMainDbgModule();
if (regNum != -1)
{
@ -10220,6 +10220,7 @@ String WinDebugger::GetProcessInfo()
retStr += StrFormat("VirtualMemory\t%d\n", memInfo.PagefileUsage);
retStr += StrFormat("WorkingMemory\t%d\n", memInfo.WorkingSetSize);
retStr += StrFormat("RunningTime\t%lld\n", *(int64*)&creationTime);
retStr += StrFormat("KernelTime\t%lld\n", *(int64*)&kernelTime);
retStr += StrFormat("UserTime\t%lld\n", *(int64*)&userTime);