summaryrefslogtreecommitdiff
path: root/vcl/ios
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-09-28 15:08:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-09-28 15:24:52 +0200
commit01e0b770a5ce58de44283465ba51b03a1ee0db0c (patch)
tree9ab1aa902f92926c92c8b11043d89e838de60c92 /vcl/ios
parentf973e25a927d458fe98689b8e356547c0a327a53 (diff)
Let SalAbort dump core on developer builds.
Diffstat (limited to 'vcl/ios')
-rw-r--r--vcl/ios/source/app/salinst.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/ios/source/app/salinst.cxx b/vcl/ios/source/app/salinst.cxx
index fb5bfb9aa662..f7c96853bc0d 100644
--- a/vcl/ios/source/app/salinst.cxx
+++ b/vcl/ios/source/app/salinst.cxx
@@ -142,14 +142,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);
}
// -----------------------------------------------------------------------