Author: zoltan
Date: 2006-03-06 13:19:48 -0500 (Mon, 06 Mar 2006)
New Revision: 57622
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/mini-exceptions.c
Log:
2006-03-06 Zoltan Varga <[EMAIL PROTECTED]>
* mini-exceptions.c: Call mono_trace_is_enabled () before printing
trace messages. Fixes #77706.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2006-03-06 17:56:48 UTC (rev 57621)
+++ trunk/mono/mono/mini/ChangeLog 2006-03-06 18:19:48 UTC (rev 57622)
@@ -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: trunk/mono/mono/mini/mini-exceptions.c
===================================================================
--- trunk/mono/mono/mini/mini-exceptions.c 2006-03-06 17:56:48 UTC (rev
57621)
+++ trunk/mono/mono/mini/mini-exceptions.c 2006-03-06 18:19:48 UTC (rev
57622)
@@ -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>
@@ -632,7 +633,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)
@@ -752,7 +753,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);
@@ -765,7 +766,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