diff options
author | Thorsten Behrens <tbehrens@novell.com> | 2011-04-27 21:06:28 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-04-27 21:06:28 +0200 |
commit | aba11ba22d16a2666f970cd2c3da9b51fd8ed679 (patch) | |
tree | 56a76334bb7ebf035aa52f2c0e1ef689e7be664a | |
parent | 44df3508cc3b04e272b222cc194c57024eb757a2 (diff) |
sal-disable-backtrace.diff: disable backtrace with DISABLE_SAL_BACKTRACE
allow to disable backtrace when defined the environment variable
DISABLE_SAL_BACKTRACE
-rw-r--r-- | sal/osl/unx/diagnose.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c index 30d15ad07..041a5e66e 100644 --- a/sal/osl/unx/diagnose.c +++ b/sal/osl/unx/diagnose.c @@ -255,8 +255,9 @@ sal_Bool SAL_CALL osl_assertFailedLine ( /* output message buffer */ OSL_DIAGNOSE_OUTPUTMESSAGE(f, szMessage); - /* output backtrace */ - osl_diagnose_backtrace_Impl(f); + /* if SAL backtrace for assertions is disabled, skip here */ + if ( !getenv("DISABLE_SAL_BACKTRACE") ) + osl_diagnose_backtrace_Impl(f); /* release lock and leave */ pthread_mutex_unlock(&g_mutex); |