From 01e0b770a5ce58de44283465ba51b03a1ee0db0c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 28 Sep 2011 15:08:45 +0200 Subject: Let SalAbort dump core on developer builds. --- vcl/aqua/source/app/salinst.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vcl/aqua') diff --git a/vcl/aqua/source/app/salinst.cxx b/vcl/aqua/source/app/salinst.cxx index df0d95c12f1d..489b1dd8a6b2 100644 --- a/vcl/aqua/source/app/salinst.cxx +++ b/vcl/aqua/source/app/salinst.cxx @@ -258,14 +258,17 @@ sal_Bool ImplSVMainHook( int * pnInit ) // ======================================================================= -void SalAbort( const XubString& rErrorText ) +void SalAbort( const XubString& rErrorText, bool bDumpCore ) { if( !rErrorText.Len() ) fprintf( stderr, "Application Error " ); else fprintf( stderr, "%s ", ByteString( rErrorText, gsl_getSystemTextEncoding() ).GetBuffer() ); - abort(); + if( bDumpCore ) + abort(); + else + _exit(1); } // ----------------------------------------------------------------------- -- cgit