Skip to content

Commit 57d903d

Browse files
authored
Merge pull request #1303 from Unity-Technologies/stackwalking-handle-null-ip
Gather callstack even if instruction pointer is null.
2 parents 79a0da3 + bab4872 commit 57d903d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mono/mini/mini-exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2727,7 +2727,7 @@ mono_unity_backtrace_from_context (void* context, void* array[], int count)
27272727
ip = (void*)MONO_CONTEXT_GET_IP(&mctx);
27282728
bp = (void**)MONO_CONTEXT_GET_BP(&mctx);
27292729

2730-
while(ip && bp && count-- > 0)
2730+
while(bp && count-- > 0)
27312731
{
27322732
array[idx++] = ip;
27332733

0 commit comments

Comments
 (0)