Skip to content

Commit

Permalink
[Wasm][AOT] Add the ability to the display the native stack frames (#…
Browse files Browse the repository at this point in the history
…49828)

* Another approach for PR #45124

* After discussion with @radical, decided to add this comment and use mono_runtime_printf_err.
  • Loading branch information
thaystg authored Mar 21, 2021
1 parent 389674d commit c07e1cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mono/mono/mini/mini-exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -3435,7 +3435,11 @@ mono_print_thread_dump_internal (void *sigctx, MonoContext *start_ctx)

mono_walk_stack_with_ctx (print_stack_frame_to_string, &ctx, MONO_UNWIND_LOOKUP_ALL, text);

#if HOST_WASM
mono_runtime_printf_err ("%s", text->str); //to print the native callstack
#else
mono_runtime_printf ("%s", text->str);
#endif

#if HOST_WIN32 && TARGET_WIN32 && _DEBUG
OutputDebugStringA(text->str);
Expand Down

0 comments on commit c07e1cf

Please sign in to comment.