[Teleus-cvs] teleus/src/game debug.cpp,1.11,1.12
Status: Inactive
Brought to you by:
spiffgq
|
From: Daniel R. <sp...@us...> - 2004-05-25 21:12:17
|
Update of /cvsroot/teleus/teleus/src/game In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29058/src/game Modified Files: debug.cpp Log Message: Modified sigsegv handler to be more conspicuous. Index: debug.cpp =================================================================== RCS file: /cvsroot/teleus/teleus/src/game/debug.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** debug.cpp 11 Mar 2004 03:08:42 -0000 1.11 --- debug.cpp 25 May 2004 21:12:07 -0000 1.12 *************** *** 193,208 **** count++; if (count > 1){ ! // Just in case any of this method creates a segfault. exit (1); } printBacktrace(); - fprintf (stderr, "Segfault caught (SIGNUM == %d). Attempting to exit\n", signum); - // In the future, add some shut down routines. ! ! fprintf (stderr, "Exiting program\n"); exit (1); - } --- 193,214 ---- count++; if (count > 1){ ! // Just in case any of this function creates a segfault. exit (1); } + fprintf (stderr, + "========================================\n" + "========================================\n" + "==== SEGFAULT ====\n" + "========================================\n" + "========================================\n"); + fprintf (stderr, "Segfault caught (SIGNUM == %d).\n", signum); + fprintf (stderr, "Stack back trace:\n"); printBacktrace(); // In the future, add some shut down routines. ! fprintf (stderr, "Exiting program\n" ! "========================================\n" ! "========================================\n"); exit (1); } |