[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] make the crash handler optional

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-01-27 10:18:57 CET

Hi,

Subversion on windows now has a nice crash handler. That's good.
But it should be optional to compile it in. The reason is simple:
some people might not want it.

Also, the crash handler can't be compiled for x64 systems and therefore
can't be used anyway.

Attached is a patch which introduces a new define SVN_USE_CRASHHANDLER.
If it is defined, the crash handler is used, otherwise not.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

[[[
Make using the crash handler on windows optional.
* subversion/libsvn_subr/cmdline.c : add #ifdef to include the crash handler
]]]
Index: subversion/libsvn_subr/cmdline.c
===================================================================
--- subversion/libsvn_subr/cmdline.c (revision 23249)
+++ subversion/libsvn_subr/cmdline.c (working copy)
@@ -105,8 +105,10 @@
   }
 #endif /* _MSC_VER < 1400 */
 
+#ifdef SVN_USE_CRASHHANDLER
   /* Attach (but don't load) the crash handler */
   SetUnhandledExceptionFilter(svn_unhandled_exception_filter);
+#endif
 
 #endif /* WIN32 */
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jan 27 10:19:17 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.