[runtime] Take correct domain information from StackFrameInfo for each stack frame.
authorVladimir Kargov <vkargov@users.noreply.github.com>
Tue, 7 Oct 2014 15:30:31 +0000 (19:30 +0400)
committerVladimir Kargov <vkargov@users.noreply.github.com>
Tue, 7 Oct 2014 15:30:31 +0000 (19:30 +0400)
mono/mini/mini-exceptions.c

index 5993ddddb63364b5b9834e3ea006d7260079572e..db4a1ce4b0c98834c4fd8cad0dd4f569c90c215a 100644 (file)
@@ -2227,8 +2227,8 @@ print_stack_frame_to_string (StackFrameInfo *frame, MonoContext *ctx, gpointer d
        if (frame->ji)
                method = jinfo_get_method (frame->ji);
 
-       if (method) {
-               gchar *location = mono_debug_print_stack_frame (method, frame->native_offset, mono_domain_get ());
+       if (method && frame->domain) {
+               gchar *location = mono_debug_print_stack_frame (method, frame->native_offset, frame->domain);
                g_string_append_printf (p, "  %s\n", location);
                g_free (location);
        } else