2010-01-04 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / mini / exceptions-ia64.c
index 763fadedd18845363b6c203838cbb5b79bfacf39..414b61e3495853813f604d033affa12bfb38dd10 100644 (file)
@@ -256,7 +256,7 @@ throw_exception (MonoObject *exc, guint64 rethrow)
                res = unw_get_reg (&ctx.cursor, UNW_IA64_SP, &sp);
                g_assert (res == 0);
 
-               ji = mono_jit_info_table_find (mono_domain_get (), (gpointer)ip);
+               ji = mini_jit_info_table_find (mono_domain_get (), (gpointer)ip, NULL);
 
                //printf ("UN: %s %lx %lx\n", ji ? ji->method->name : "", ip, sp);
 
@@ -274,6 +274,7 @@ throw_exception (MonoObject *exc, guint64 rethrow)
                }
                g_assert (res >= 0);
        }
+       ctx.precise_ip = FALSE;
 
        mono_handle_exception (&ctx, exc, (gpointer)(ip), FALSE);
        restore_context (&ctx);
@@ -517,14 +518,14 @@ mono_arch_get_throw_corlib_exception (void)
  */
 MonoJitInfo *
 mono_arch_find_jit_info (MonoDomain *domain, MonoJitTlsData *jit_tls, MonoJitInfo *res, MonoJitInfo *prev_ji, MonoContext *ctx, 
-                        MonoContext *new_ctx, char **trace, MonoLMF **lmf, int *native_offset,
-                        gboolean *managed)
+                        MonoContext *new_ctx, MonoLMF **lmf, gboolean *managed)
 {
        MonoJitInfo *ji;
        int err;
        unw_word_t ip;
 
        *new_ctx = *ctx;
+       new_ctx->precise_ip = FALSE;
 
        while (TRUE) {
                err = unw_get_reg (&new_ctx->cursor, UNW_IA64_IP, &ip);
@@ -534,7 +535,7 @@ mono_arch_find_jit_info (MonoDomain *domain, MonoJitTlsData *jit_tls, MonoJitInf
                if (prev_ji && ((guint8*)ip > (guint8*)prev_ji->code_start && ((guint8*)ip < ((guint8*)prev_ji->code_start) + prev_ji->code_size)))
                        ji = prev_ji;
                else
-                       ji = mono_jit_info_table_find (domain, (gpointer)ip);
+                       ji = mini_jit_info_table_find (domain, (gpointer)ip, NULL);
 
                if (managed)
                        *managed = FALSE;
@@ -610,7 +611,7 @@ mono_arch_handle_exception (void *sigctx, gpointer obj, gboolean test_only)
                res = unw_get_reg (&ctx.cursor, UNW_IA64_IP, &ip);
                g_assert (res == 0);
 
-               ji = mono_jit_info_table_find (mono_domain_get (), (gpointer)ip);
+               ji = mini_jit_info_table_find (mono_domain_get (), (gpointer)ip, NULL);
 
                if (ji)
                        break;
@@ -618,6 +619,7 @@ mono_arch_handle_exception (void *sigctx, gpointer obj, gboolean test_only)
                res = unw_step (&ctx.cursor);
                g_assert (res >= 0);
        }
+       ctx.precise_ip = TRUE;
 
        mono_handle_exception (&ctx, obj, (gpointer)ip, test_only);