|
From: Charles L. <cn...@us...> - 2008-12-29 06:26:42
|
Update of /cvsroot/hgengine/Mercury/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv7685 Modified Files: Mercury.cpp MercuryUtil.cpp Log Message: Fix compile for new crash handler Index: MercuryUtil.cpp =================================================================== RCS file: /cvsroot/hgengine/Mercury/src/MercuryUtil.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** MercuryUtil.cpp 1 Dec 2008 05:32:46 -0000 1.28 --- MercuryUtil.cpp 29 Dec 2008 06:26:35 -0000 1.29 *************** *** 209,213 **** { char buff[2048]; ! cnget_backtrace( 1, buff, 2048 ); puts( buff ); printf( "Forced crash (%s) Bactrace follows\n%s\n", reason, buff ); --- 209,213 ---- { char buff[2048]; ! cnget_backtrace( 1, buff, 2048, 0 ); puts( buff ); printf( "Forced crash (%s) Bactrace follows\n%s\n", reason, buff ); Index: Mercury.cpp =================================================================== RCS file: /cvsroot/hgengine/Mercury/src/Mercury.cpp,v retrieving revision 1.120 retrieving revision 1.121 diff -C2 -d -r1.120 -r1.121 *** Mercury.cpp 1 Dec 2008 05:32:46 -0000 1.120 --- Mercury.cpp 29 Dec 2008 06:26:35 -0000 1.121 *************** *** 68,76 **** ! int MyCrash( int i ) { char buff[2048]; printf( "Signal: %d (%s)\n", i, cn_get_crash_description( i ) ); ! cnget_backtrace( 1, buff, 2048 ); puts( buff ); return 0; --- 68,76 ---- ! int MyCrash( int i, struct BacktraceContext * ctx ) { char buff[2048]; printf( "Signal: %d (%s)\n", i, cn_get_crash_description( i ) ); ! cnget_backtrace( 1, buff, 2048, ctx ); puts( buff ); return 0; |