[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

kocienda kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:13:49 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 3c60ddcf48ef92797b49fecab35f3f5531f93e9f
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon May 20 22:24:31 2002 +0000

    2002-05-20  Kenneth Kocienda  <kocienda at apple.com>
    
            Changed assertion failure code to send a SIGQUIT instead
            of raising an NSException.
    
            * Misc.subproj/WebKitDebug.h
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1179 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index dedb551..245a5fa 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,10 @@
+2002-05-20  Kenneth Kocienda  <kocienda at apple.com>
+
+        Changed assertion failure code to send a SIGQUIT instead
+        of raising an NSException.
+
+	* Misc.subproj/WebKitDebug.h
+
 2002-05-20  Chris Blumenberg  <cblu at apple.com>
 
 	A whole lot of plug-in clean-up.
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index dedb551..245a5fa 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,10 @@
+2002-05-20  Kenneth Kocienda  <kocienda at apple.com>
+
+        Changed assertion failure code to send a SIGQUIT instead
+        of raising an NSException.
+
+	* Misc.subproj/WebKitDebug.h
+
 2002-05-20  Chris Blumenberg  <cblu at apple.com>
 
 	A whole lot of plug-in clean-up.
diff --git a/WebKit/Misc.subproj/WebKitDebug.h b/WebKit/Misc.subproj/WebKitDebug.h
index 54905cb..135275d 100644
--- a/WebKit/Misc.subproj/WebKitDebug.h
+++ b/WebKit/Misc.subproj/WebKitDebug.h
@@ -73,27 +73,35 @@ void WebKitLog(unsigned int level, const char *file, int line, const char *funct
  * Assertion macros
  */
 
+#import <signal.h>
+#import <sys/types.h>
+#import <sys/resource.h>
+
+#define WEBKIT_ASSERTION_FAILURE \
+    do { \
+        struct rlimit _rlimit = {RLIM_INFINITY, RLIM_INFINITY}; \
+        setrlimit(RLIMIT_CORE, &_rlimit); \
+        raise(SIGQUIT); \
+    } while (0)
+
 #define WEBKIT_ASSERT(expr) \
     do { \
         if (!(expr)) { \
-            NSString *reason = [NSString stringWithFormat:@"assertion failed(%s:%d %s): '%s'", __FILE__, __LINE__, __FUNCTION__, #expr]; \
-            [[NSException exceptionWithName:NSGenericException reason:reason userInfo: nil] raise]; \
+            WEBKIT_ASSERTION_FAILURE; \
         } \
     } while (0)
 
 #define WEBKIT_ASSERT_VALID_ARG(arg,expr) \
     do { \
         if (!(expr)) { \
-            NSString *reason = [NSString stringWithFormat:@"(%s:%d %s): '%s' fails check: '%s'", __FILE__, __LINE__, __FUNCTION__, #arg, #expr]; \
-            [[NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo: nil] raise]; \
+            WEBKIT_ASSERTION_FAILURE; \
         } \
     } while (0)
     
 #define WEBKIT_ASSERT_NOT_NIL(arg) \
     do { \
         if ((arg) == nil) { \
-            NSString *reason = [NSString stringWithFormat:@"(%s:%d %s): '%s' is nil", __FILE__, __LINE__, __FUNCTION__, #arg]; \
-            [[NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo: nil] raise]; \
+            WEBKIT_ASSERTION_FAILURE; \
         } \
     } while (0)
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list