fix compiling xdebug with DISABLE_AOT || DISABLE_JIT
[mono.git] / mono / mini / exceptions-mips.c
index e1edb17acc8fa74761547a689ddcd81c9c86e337..093e0c16bc203a4b67a742b5308c3c5758576d57 100644 (file)
@@ -344,6 +344,19 @@ mono_arch_get_throw_exception (void)
        return start;
 }
 
+gpointer 
+mono_arch_get_throw_exception_by_name (void)
+{
+       guint8 *start, *code;
+       int size = 64;
+
+       /* Not used on MIPS */  
+       start = code = mono_global_codeman_reserve (size);
+       mips_break (code, 0xfd);
+       mono_arch_flush_icache (start, code - start);
+       return start;
+}
+
 /**
  * mono_arch_get_throw_corlib_exception:
  *
@@ -408,7 +421,7 @@ mono_arch_find_jit_info (MonoDomain *domain, MonoJitTlsData *jit_tls,
        if (prev_ji && (ip > 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, ip);
+               ji = mini_jit_info_table_find (domain, ip, NULL);
 
        if (managed)
                *managed = FALSE;
@@ -495,9 +508,9 @@ mono_arch_find_jit_info (MonoDomain *domain, MonoJitTlsData *jit_tls,
                }
                g_assert (((*lmf)->magic == MIPS_LMF_MAGIC1) || ((*lmf)->magic == MIPS_LMF_MAGIC2));
 
-               if ((ji = mono_jit_info_table_find (domain, (gpointer)(*lmf)->eip))) {
+               if ((ji = mini_jit_info_table_find (domain, (gpointer)(*lmf)->eip, NULL))) {
                } else {
-                       memset (res, 0, sizeof (MonoJitInfo));
+                       memset (res, 0, MONO_SIZEOF_JIT_INFO);
                        res->method = (*lmf)->method;
                }
                memcpy (&new_ctx->sc_regs, (*lmf)->iregs, sizeof (gulong) * MONO_SAVED_GREGS);