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

Re: [PATCH] make the crash handler optional

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-01-29 20:55:00 CET

On Sat, 27 Jan 2007, Stefan Küng wrote:

> 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.

This patch seems conceptually fine. However, I think the crash
handler should be compiled in by default (as it is now); this patch
changes that behavior.

> [[[
> 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 */

  • application/pgp-signature attachment: stored
Received on Mon Jan 29 20:55:14 2007

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