Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Culver <leculver@microsoft.com>2019-02-02 00:26:35 +0300
committerMarek Safar <marek.safar@gmail.com>2019-02-04 19:46:34 +0300
commita4e486da0bd4eb487fe515e3fd10770685c8baa3 (patch)
tree272f4d046ef119c93820402389d633b724b16769
parent077179a5dcd32883abd12b565b203aef980c2ffc (diff)
Add back missing stack frames to mono MERP reports
Changeset https://github.com/mono/mono/commit/e1461ebc855977667f71d1804fd96eed2a155aff introduced a regression where only the topmost frame of managed crashes are reported. This change adds back the missing stack frames.
-rw-r--r--mono/utils/mono-state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mono/utils/mono-state.c b/mono/utils/mono-state.c
index 0168f6c048c..ac6a25e71fe 100644
--- a/mono/utils/mono-state.c
+++ b/mono/utils/mono-state.c
@@ -373,10 +373,10 @@ mono_native_state_add_frames (MonoStateWriter *writer, int num_frames, MonoFrame
// the add_frame method
mono_native_state_add_frame (writer, &frames [0]);
- // for (int i = 1; i < num_frames; ++i) {
- // mono_state_writer_printf(writer, ",\n");
- // mono_native_state_add_frame (writer, &frames [i]);
- // }
+ for (int i = 1; i < num_frames; ++i) {
+ mono_state_writer_printf(writer, ",\n");
+ mono_native_state_add_frame (writer, &frames [i]);
+ }
mono_state_writer_printf(writer, "\n");
mono_state_writer_indent (writer);