crash fix

This commit is contained in:
Mikulas Florek 2014-11-22 02:05:39 +01:00
parent b7d09a8268
commit a55ca52ee2

View file

@ -68,14 +68,16 @@ namespace Debug
SymFromAddr(process, (DWORD64)(node->m_instruction), 0, symbol);
IMAGEHLP_LINE line;
DWORD offset;
SymGetLineFromAddr(process, (DWORD64)(node->m_instruction), &offset, &line);
OutputDebugString("\t");
OutputDebugString(line.FileName);
OutputDebugString("(");
char tmp[20];
toCString((uint32_t)line.LineNumber, tmp, sizeof(tmp));
OutputDebugString(tmp);
OutputDebugString("):");
if (SymGetLineFromAddr(process, (DWORD64)(node->m_instruction), &offset, &line))
{
OutputDebugString("\t");
OutputDebugString(line.FileName);
OutputDebugString("(");
char tmp[20];
toCString((uint32_t)line.LineNumber, tmp, sizeof(tmp));
OutputDebugString(tmp);
OutputDebugString("):");
}
OutputDebugString("\t");
OutputDebugString(symbol->Name);
OutputDebugString("\n");