Flesh the message printed by the signal handler more out and print the

compiler used to create the binary.
This commit is contained in:
Yamagi Burmeister 2012-02-29 20:54:31 +00:00
parent c7eac16467
commit 75df000d27

View file

@ -50,6 +50,7 @@ printBacktrace(int sig)
printf("Version: %4.2f\n", VERSION);
printf("Plattform: %s\n", BUILDSTRING);
printf("Architecture: %s\n", CPUSTRING);
printf("Compiler: %s\n", __VERSION__);
printf("Signal: %i\n", sig);
printf("\nBacktrace:\n");
@ -70,6 +71,7 @@ printBacktrace(int sig)
printf("Version: %4.2f\n", VERSION);
printf("Plattform: %s\n", BUILDSTRING);
printf("Architecture: %s\n", CPUSTRING);
printf("Compiler: %s\n", __VERSION__);
printf("Signal: %i\n", sig);
printf("\nBacktrace:\n");
printf(" Not available on this plattform.\n\n");
@ -81,14 +83,24 @@ printBacktrace(int sig)
void
signalhandler(int sig)
{
printf("\n=======================================================\n\n");
printf("\nYamagi Quake II crashed! This should not happen...\n");
printf("\nMake sure that you're using the last version. It can\n");
printf("be found at http://www.yamagi.org/quake2. If you do send\n");
printf("a bug report to quake2@yamagi.org and include this output,\n");
printf("detailed condition, reproduction of the issue (if possible),\n");
printf("the executable (not the start script!) and additional data\n");
printf("which you think might be useful. The executable does not\n");
printf("include any private data. Than.\n");
printf("be found at http://www.yamagi.org/quake2. If you do,\n");
printf("send a bug report to quake2@yamagi.org and include:\n\n");
printf(" - This output\n");
printf(" - The conditions that triggered the crash\n");
printf(" - How to reproduce the crash (if known)\n");
printf(" - The following files. None of them contains private\n");
printf(" data. They're necessary to analyze the backtrace:\n\n");
printf(" - quake2 (the executable / binary)\n\n");
printf(" - ref_gl.so (the renderer)\n\n");
printf(" - game.so (the game.so of the mod you were playing\n");
printf(" when the game crashed. baseq2/game.so for the\n");
printf(" main game)\n\n");
printf(" - Any other data which you think might be usefull\n");
printf("\nThank you very much for your help, making Yamagi Quake\n");
printf("II an even better Quake II source port.\n");
printf("\n=======================================================\n\n");
printBacktrace(sig);