Pull up following revision(s) (requested by chs in ticket #855):

external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c: revision 1.11
don't fail for anonymous unions.
This commit is contained in:
snj 2015-06-29 17:18:10 +00:00
parent c2a0748f63
commit a6ff6bd83f
1 changed files with 8 additions and 0 deletions

View File

@ -1162,6 +1162,14 @@ die_sou_resolve(tdesc_t *tdp, tdesc_t **tdpp __unused, void *private)
continue;
}
/*
* anonymous union members are OK.
* XXX: we should consistently use NULL, instead of ""
*/
if (mt->t_type == UNION &&
(mt->t_name == NULL || mt->t_name[0] == '\0'))
continue;
printf("%s unresolved type = %d (%s)\n", tdesc_name(tdp),
mt->t_type, tdesc_name(mt));
dw->dw_nunres++;