Author: zoltan
Date: 2006-03-06 13:20:48 -0500 (Mon, 06 Mar 2006)
New Revision: 57623

Modified:
   branches/mono-1-1-13/mono/mono/mini/ChangeLog
   branches/mono-1-1-13/mono/mono/mini/mini-exceptions.c
Log:
Merge from HEAD.


Modified: branches/mono-1-1-13/mono/mono/mini/ChangeLog
===================================================================
--- branches/mono-1-1-13/mono/mono/mini/ChangeLog       2006-03-06 18:19:48 UTC 
(rev 57622)
+++ branches/mono-1-1-13/mono/mono/mini/ChangeLog       2006-03-06 18:20:48 UTC 
(rev 57623)
@@ -1,3 +1,8 @@
+2006-03-06  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * mini-exceptions.c: Call mono_trace_is_enabled () before printing
+       trace messages. Fixes #77706.
+
 2006-03-04  Martin Baulig  <[EMAIL PROTECTED]>
 
        * tramp-amd64.c, tramp-x86.c

Modified: branches/mono-1-1-13/mono/mono/mini/mini-exceptions.c
===================================================================
--- branches/mono-1-1-13/mono/mono/mini/mini-exceptions.c       2006-03-06 
18:19:48 UTC (rev 57622)
+++ branches/mono-1-1-13/mono/mono/mini/mini-exceptions.c       2006-03-06 
18:20:48 UTC (rev 57623)
@@ -25,6 +25,7 @@
 #include <mono/metadata/mono-debug.h>
 
 #include "mini.h"
+#include "trace.h"
 
 #ifdef MONO_ARCH_SIGSEGV_ON_ALTSTACK
 #include <unistd.h>
@@ -644,7 +645,7 @@
 
        if (!test_only) {
                MonoContext ctx_cp = *ctx;
-               if (mono_jit_trace_calls != NULL)
+               if (mono_trace_is_enabled ())
                        g_print ("EXCEPTION handling: %s\n", mono_object_class 
(obj)->name);
                if (!mono_handle_exception_internal (&ctx_cp, obj, original_ip, 
TRUE, &first_filter_idx)) {
                        if (mono_break_on_exc)
@@ -764,7 +765,7 @@
                                                                        
mono_gc_enable ();
                                                                return TRUE;
                                                        }
-                                                       if 
(mono_jit_trace_calls != NULL && mono_trace_eval (ji->method))
+                                                       if 
(mono_trace_is_enabled () && mono_trace_eval (ji->method))
                                                                g_print 
("EXCEPTION: catch found at clause %d of %s\n", i, mono_method_full_name 
(ji->method, TRUE));
                                                        
mono_debugger_handle_exception (ei->handler_start, MONO_CONTEXT_GET_SP (ctx), 
obj);
                                                        MONO_CONTEXT_SET_IP 
(ctx, ei->handler_start);
@@ -777,7 +778,7 @@
                                                if (!test_only && ei->try_start 
<= MONO_CONTEXT_GET_IP (ctx) && 
                                                    MONO_CONTEXT_GET_IP (ctx) < 
ei->try_end &&
                                                    (ei->flags & 
MONO_EXCEPTION_CLAUSE_FINALLY)) {
-                                                       if 
(mono_jit_trace_calls != NULL && mono_trace_eval (ji->method))
+                                                       if 
(mono_trace_is_enabled () && mono_trace_eval (ji->method))
                                                                g_print 
("EXCEPTION: finally clause %d of %s\n", i, mono_method_full_name (ji->method, 
TRUE));
                                                        
mono_debugger_handle_exception (ei->handler_start, MONO_CONTEXT_GET_SP (ctx), 
obj);
                                                        call_filter (ctx, 
ei->handler_start);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to