Skip to content

Commit

Permalink
Merge pull request #1250 from Unity-Technologies/fix-debugger-crash-1…
Browse files Browse the repository at this point in the history
…210416

[Debugger] Fix crash when there is a generic struct with a field that…
  • Loading branch information
UnityAlex authored Feb 3, 2020
2 parents 1274236 + d9f8bdf commit ea40a8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mono/mini/debugger-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -7889,6 +7889,12 @@ decode_value_internal (MonoType *t, int type, MonoDomain *domain, guint8 *addr,
g_free (name);
return ERR_INVALID_ARGUMENT;
}
} else if ((t->type == MONO_TYPE_GENERICINST) &&
mono_metadata_generic_class_is_valuetype (t->data.generic_class) &&
t->data.generic_class->container_class->enumtype){
err = decode_vtype (t, domain, addr, buf, &buf, limit);
if (err != ERR_NONE)
return err;
} else {
NOT_IMPLEMENTED;
}
Expand Down

0 comments on commit ea40a8c

Please sign in to comment.