Skip to content

Commit a49c62a

Browse files
authored
Merge pull request #863 from Unity-Technologies/sync-il2cpp-debugger
Set the frame ID for the debugger
2 parents ca762c2 + fdd29ba commit a49c62a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mono/mini/debugger-agent.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3453,18 +3453,18 @@ compute_frame_info (MonoInternalThread *thread, DebuggerTlsData *tls)
34533453
for (tmp = user_data.frames; tmp; tmp = tmp->next) {
34543454
f = (StackFrame *)tmp->data;
34553455

3456-
#ifndef RUNTIME_IL2CPP
34573456
/*
34583457
* Reuse the id for already existing stack frames, so invokes don't invalidate
34593458
* the still valid stack frames.
34603459
*/
34613460
for (i = 0; i < tls->frame_count; ++i) {
3461+
#ifndef RUNTIME_IL2CPP
34623462
if (MONO_CONTEXT_GET_SP (&tls->frames [i]->ctx) == MONO_CONTEXT_GET_SP (&f->ctx)) {
34633463
f->id = tls->frames [i]->id;
34643464
break;
34653465
}
3466-
}
34673466
#endif // !RUNTIME_IL2CPP
3467+
}
34683468

34693469
if (i >= tls->frame_count)
34703470
f->id = mono_atomic_inc_i32 (&frame_id);

0 commit comments

Comments
 (0)