From 6dc6820038cf0a2d067e5fe9c72b42a79404a3c9 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Fri, 18 Nov 2011 13:07:59 +0100 Subject: [PATCH] Do not catch signals in dbgutil build Helps debug crashes, segfaults, etc as one gets the right backtrace in gdb and dumped core. --- sal/osl/unx/signal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sal/osl/unx/signal.c b/sal/osl/unx/signal.c index abb4eaaef7a9..6a6dd1d469e8 100644 --- a/sal/osl/unx/signal.c +++ b/sal/osl/unx/signal.c @@ -248,6 +248,10 @@ static sal_Bool InitSignal() bSetILLHandler = sal_True; } +#ifdef DBG_UTIL + bSetSEGVHandler = bSetWINCHHandler = bSetILLHandler = bDoHardKill = sal_False; +#endif + SignalListMutex = osl_createMutex(); act.sa_handler = SignalHandlerFunction;