+2003-01-08 Dietmar Maurer <dietmar@ximian.com>
+
+ * exception.c (ves_icall_get_frame_info): skip one more frame and also
+ MONO_WRAPPER_RUNTIME_INVOKE wrappers
+
2003-01-07 Dietmar Maurer <dietmar@ximian.com>
* exception.c (ves_icall_get_frame_info): fix bug 36382
MONO_CONTEXT_SET_IP (&ctx, ves_icall_get_frame_info);
MONO_CONTEXT_SET_BP (&ctx, __builtin_frame_address (0));
+ skip++;
+
do {
ji = mono_arch_find_jit_info (domain, jit_tls, &ctx, &new_ctx, NULL, &lmf, native_offset, NULL);
ctx = new_ctx;
if (!ji || MONO_CONTEXT_GET_BP (&ctx) >= jit_tls->end_of_stack)
return FALSE;
- } while (skip-- > 0);
+ if (ji->method->wrapper_type == MONO_WRAPPER_RUNTIME_INVOKE)
+ continue;
+
+ skip--;
+
+ } while (skip >= 0);
*method = mono_method_get_object (domain, ji->method, NULL);
*iloffset = mono_debug_il_offset_from_address (ji->method, *native_offset);