mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/CrashHandler: Support dumping variables stored in cpu registers (not accurate for all variables)
This commit is contained in:
@@ -1326,7 +1326,13 @@ EnumerateSymbolsCallbackContext* pCtx)
|
||||
pVariable += *registerValue;
|
||||
}
|
||||
else if (pSym->Flags & IMAGEHLP_SYMBOL_INFO_REGISTER)
|
||||
return false; // Don't try to report register variable
|
||||
{
|
||||
registerVariableStorage = GetIntegerRegisterValue(pCtx->context, pSym->Register);
|
||||
if (!registerVariableStorage)
|
||||
return false; // Don't try to report non-integer register variable
|
||||
|
||||
pVariable = reinterpret_cast<DWORD_PTR>(&*registerVariableStorage);
|
||||
}
|
||||
else
|
||||
{
|
||||
// It must be a global variable
|
||||
|
||||
Reference in New Issue
Block a user