improve output
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
#include "CrashHandler.h"
|
#include "CrashHandler.h"
|
||||||
#include "CrashHandlerInternal.h"
|
#include "CrashHandlerInternal.h"
|
||||||
#include "RageLog.h" /* for RageLog::GetAdditionalLog, etc. only */
|
#include "RageLog.h" /* for RageLog::GetAdditionalLog, etc. only */
|
||||||
|
#include "ProductInfo.h"
|
||||||
|
|
||||||
#if defined(DARWIN)
|
#if defined(DARWIN)
|
||||||
#include "archutils/Darwin/Crash.h"
|
#include "archutils/Darwin/Crash.h"
|
||||||
@@ -361,11 +362,12 @@ static void child_process()
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(CrashDump, "StepMania crash report");
|
fprintf(CrashDump, "%s crash report", PRODUCT_NAME_VER );
|
||||||
#if defined(HAVE_VERSION_INFO)
|
#if defined(HAVE_VERSION_INFO)
|
||||||
fprintf(CrashDump, " -- build %u", version_num);
|
fprintf(CrashDump, " (build %u)", version_num);
|
||||||
#endif
|
#endif
|
||||||
fprintf(CrashDump, "\n--------------------------------------\n");
|
fprintf(CrashDump, "\n");
|
||||||
|
fprintf(CrashDump, "--------------------------------------\n");
|
||||||
fprintf(CrashDump, "\n");
|
fprintf(CrashDump, "\n");
|
||||||
|
|
||||||
CString Signal;
|
CString Signal;
|
||||||
@@ -434,7 +436,7 @@ static void child_process()
|
|||||||
#else
|
#else
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n"
|
"\n"
|
||||||
"StepMania has crashed. Debug information has been output to\n"
|
PRODUCT_NAME " has crashed. Debug information has been output to\n"
|
||||||
"\n"
|
"\n"
|
||||||
" /tmp/crashinfo.txt\n"
|
" /tmp/crashinfo.txt\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include "crash.h"
|
#include "crash.h"
|
||||||
#include "disasm.h"
|
#include "disasm.h"
|
||||||
#include "CrashList.h"
|
#include "CrashList.h"
|
||||||
|
#include "ProductInfo.h"
|
||||||
|
|
||||||
#include "RageLog.h" /* for RageLog::GetAdditionalLog only */
|
#include "RageLog.h" /* for RageLog::GetAdditionalLog only */
|
||||||
#include "RageThreads.h" /* for GetCheckpointLogs */
|
#include "RageThreads.h" /* for GetCheckpointLogs */
|
||||||
@@ -1361,9 +1362,9 @@ static void DoSave(const EXCEPTION_POINTERS *pExc) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Report(NULL, hFile,
|
Report(NULL, hFile,
|
||||||
"StepMania crash report -- build %d\r\n"
|
"%s crash report (build %d)\r\n"
|
||||||
"--------------------------------------"
|
"--------------------------------------"
|
||||||
"\r\n", version_num);
|
"\r\n", PRODUCT_NAME_VER, version_num);
|
||||||
|
|
||||||
// Detect operating system.
|
// Detect operating system.
|
||||||
|
|
||||||
@@ -1470,10 +1471,10 @@ BOOL APIENTRY CrashDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
|
|||||||
case IDC_CRASH_SAVE:
|
case IDC_CRASH_SAVE:
|
||||||
if (!s_bHaveCallstack)
|
if (!s_bHaveCallstack)
|
||||||
if (IDOK != MessageBox(hDlg,
|
if (IDOK != MessageBox(hDlg,
|
||||||
"StepMania cannot load its crash resource file, and thus the crash dump will be "
|
PRODUCT_NAME " cannot load its crash resource file, and thus the crash dump will be "
|
||||||
"missing the most important part, the call stack. Crash dumps are much less useful "
|
"missing the most important part, the call stack. Crash dumps are much less useful "
|
||||||
"without the call stack.",
|
"without the call stack.",
|
||||||
"StepMania warning", MB_OK|MB_ICONEXCLAMATION))
|
PRODUCT_NAME " warning", MB_OK|MB_ICONEXCLAMATION))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
ViewWithNotepad("crashinfo.txt");
|
ViewWithNotepad("crashinfo.txt");
|
||||||
|
|||||||
Reference in New Issue
Block a user