[mono] Include dynamic methods in stacktrace (#72732)
authorVlad Brezae <brezaevlad@gmail.com>
Mon, 25 Jul 2022 07:46:23 +0000 (10:46 +0300)
committerGitHub <noreply@github.com>
Mon, 25 Jul 2022 07:46:23 +0000 (10:46 +0300)
Same as coreclr

src/mono/mono/mini/mini-exceptions.c

index a21c1ac..d753cde 100644 (file)
@@ -1119,7 +1119,8 @@ ves_icall_get_trace (MonoException *exc, gint32 skip, MonoBoolean need_file_info
                        method = jinfo_get_method (ji);
                else
                        method = get_method_from_stack_frame (ji, generic_info);
-               if (jinfo_get_method (ji)->wrapper_type) {
+               int wrapper_type = jinfo_get_method (ji)->wrapper_type;
+               if (wrapper_type && wrapper_type != MONO_WRAPPER_DYNAMIC_METHOD) {
                        char *s;
 
                        sf->method = NULL;