diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c index e62bce1e..91085dff 100644 --- a/dwarves_fprintf.c +++ b/dwarves_fprintf.c @@ -345,7 +345,7 @@ size_t typedef__fprintf(const struct tag *tag, const struct cu *cu, case DW_TAG_structure_type: { struct type *ctype = tag__type(tag_type); - if (type__name(ctype) != NULL) + if (type__name(ctype) != NULL && conf->expand_types != true) return printed + fprintf(fp, "struct %s %s", type__name(ctype), type__name(type)); struct conf_fprintf tconf = *pconf;