Try to make scope info logging more robust.

Add checks for validity of Vehicle ptrs in scope_dumper::VehicleInfo.
In Unix mode, try to handle SIGSEGVs when dumping scope info.
This commit is contained in:
Jonathan G Rennison
2016-02-25 19:21:06 +00:00
parent 0062881a46
commit cbc35e8aae
4 changed files with 57 additions and 0 deletions

View File

@@ -81,6 +81,13 @@ char *CrashLog::LogCompiler(char *buffer, const char *last) const
return buffer;
}
#ifdef USE_SCOPE_INFO
/* virtual */ char *CrashLog::LogScopeInfo(char *buffer, const char *last) const
{
return buffer + WriteScopeLog(buffer, last);
}
#endif
/**
* Writes OpenTTD's version to the buffer.
* @param buffer The begin where to write at.