Merge pull request #880 from awinters-fvs/xbuild/make-dist-fix
[mono.git] / mono / mini / mini-exceptions.c
index fcdb5405990a20023dd6415ef61cfafbe0efc9fe..86ac38e31f25bfcc4fce69d77857c388a88b181a 100644 (file)
@@ -1933,7 +1933,7 @@ mono_setup_altstack (MonoJitTlsData *tls)
        if (mono_running_on_valgrind ())
                return;
 
-       mono_thread_get_stack_bounds (&staddr, &stsize);
+       mono_thread_info_get_stack_bounds (&staddr, &stsize);
 
        g_assert (staddr);
 
@@ -2709,3 +2709,16 @@ mono_restore_context (MonoContext *ctx)
        g_assert_not_reached ();
 }
 
+/*
+ * mono_jinfo_get_unwind_info:
+ *
+ *   Return the unwind info for JI.
+ */
+guint8*
+mono_jinfo_get_unwind_info (MonoJitInfo *ji, guint32 *unwind_info_len)
+{
+       if (ji->from_aot)
+               return mono_aot_get_unwind_info (ji, unwind_info_len);
+       else
+               return mono_get_cached_unwind_info (ji->used_regs, unwind_info_len);
+}