- improve the stack trace when the jit is active

This commit is contained in:
Magnus Norddahl 2018-12-18 11:44:51 +01:00
commit 27ecae265d
5 changed files with 120 additions and 7 deletions

View file

@ -658,7 +658,11 @@ CVMAbortException::CVMAbortException(EVMAbortException reason, const char *morei
size_t len = strlen(m_Message);
myvsnprintf(m_Message + len, MAX_ERRORTEXT - len, moreinfo, ap);
}
stacktrace = "";
if (vm_jit)
stacktrace = JitCaptureStackTrace();
else
stacktrace = "";
}
// Print this only once on the first catch block.