=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ctfconv/parse.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/ctfconv/parse.c 2017/08/11 16:28:30 1.3 --- src/usr.bin/ctfconv/parse.c 2017/08/11 16:55:46 1.4 *************** *** 1,4 **** ! /* $OpenBSD: parse.c,v 1.3 2017/08/11 16:28:30 mpi Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot --- 1,4 ---- ! /* $OpenBSD: parse.c,v 1.4 2017/08/11 16:55:46 mpi Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot *************** *** 1010,1015 **** --- 1010,1025 ---- /* Skip members of members */ if (die->die_lvl > lvl + 1) + continue; + /* + * Nested declaration. + * + * This matches the case where a ``struct'', ``union'', + * ``enum'' or ``typedef'' is first declared "inside" a + * union or struct declaration. + */ + if (tag == DW_TAG_structure_type || tag == DW_TAG_union_type || + tag == DW_TAG_enumeration_type || tag == DW_TAG_typedef) continue; it->it_flags |= ITF_UNRES_MEMB;