[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:51 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit af0fda7ce5b9c1837689b17fb4847b7cdb7d9783
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon May 20 22:42: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.
    
            * kwq/kwqdebug.h
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1180 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index d95840c..8713660 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/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.
+
+	* kwq/kwqdebug.h
+
 2002-05-19  Darin Adler  <darin at apple.com>
 
 	* khtml/rendering/render_object.cpp: (RenderObject::drawBorder):
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index d95840c..8713660 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -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.
+
+	* kwq/kwqdebug.h
+
 2002-05-19  Darin Adler  <darin at apple.com>
 
 	* khtml/rendering/render_object.cpp: (RenderObject::drawBorder):
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index d95840c..8713660 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -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.
+
+	* kwq/kwqdebug.h
+
 2002-05-19  Darin Adler  <darin at apple.com>
 
 	* khtml/rendering/render_object.cpp: (RenderObject::drawBorder):
diff --git a/WebCore/kwq/kwqdebug.h b/WebCore/kwq/kwqdebug.h
index a4afcb9..f991442 100644
--- a/WebCore/kwq/kwqdebug.h
+++ b/WebCore/kwq/kwqdebug.h
@@ -84,27 +84,35 @@ void KWQLog(unsigned int level, const char *file, int line, const char *function
  * Assertion macros
  */
 
+#import <signal.h>
+#import <sys/types.h>
+#import <sys/resource.h>
+
+#define KWQ_ASSERTION_FAILURE \
+    do { \
+        struct rlimit _rlimit = {RLIM_INFINITY, RLIM_INFINITY}; \
+        setrlimit(RLIMIT_CORE, &_rlimit); \
+        raise(SIGQUIT); \
+    } while (0)
+
 #define KWQ_ASSERT(expr) \
     do { \
         if (!(expr)) { \
-            NSString *reason = [NSString stringWithFormat:@"assertion failed: '%s'", #expr]; \
-            [[NSException exceptionWithName:NSGenericException reason:reason userInfo: nil] raise]; \
+            KWQ_ASSERTION_FAILURE; \
         } \
     } while (0)
 
 #define KWQ_ASSERT_VALID_ARG(arg,expr) \
     do { \
         if (!(expr)) { \
-            NSString *reason = [NSString stringWithFormat:@"'%s' fails check: '%s'", #arg, #expr]; \
-            [[NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo: nil] raise]; \
+            KWQ_ASSERTION_FAILURE; \
         } \
     } while (0)
 
 #define KWQ_ASSERT_NOT_NIL(arg) \
     do { \
         if ((arg) == nil) { \
-            NSString *reason = [NSString stringWithFormat:@"'%s' is nil", #arg]; \
-            [[NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo: nil] raise]; \
+            KWQ_ASSERTION_FAILURE; \
         } \
     } while (0)
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list