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
commit7dfade513257ba0154cc846bc8afd23acea6068a (patch)
tree9919e5578895fd200bec8ee1efece16c2ed14bab
parentf0b29cac4b5d6e24eaf07c419e31062bf0c91f7f (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 5425810ae408..043d68aa5c00 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);