summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-04-27 21:06:28 +0200
committerPetr Mladek <pmladek@suse.cz>2011-04-27 21:06:28 +0200
commitaba11ba22d16a2666f970cd2c3da9b51fd8ed679 (patch)
tree56a76334bb7ebf035aa52f2c0e1ef689e7be664a
parent44df3508cc3b04e272b222cc194c57024eb757a2 (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.c5
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);