Skip to content

Commit

Permalink
Gather callstack even if instruction pointer is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
unpacklo authored and joncham committed Jun 7, 2020
1 parent 8df4a08 commit e2b47cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/mini/mini-exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2726,7 +2726,7 @@ mono_unity_backtrace_from_context (void* context, void* array[], int count)
ip = (void*)MONO_CONTEXT_GET_IP(&mctx);
bp = (void**)MONO_CONTEXT_GET_BP(&mctx);

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

Expand Down

0 comments on commit e2b47cb

Please sign in to comment.