Only structs have holes, not, for instance, DW_AT_subprogram entries,

aka functions.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2006-10-28 18:37:38 -03:00
parent 35e87417f9
commit e61005ee82
1 changed files with 3 additions and 2 deletions

View File

@ -354,9 +354,10 @@ void classes__print(const unsigned int tag)
if (pos->tag == tag && pos->name[0] != '\0') {
if (tag == DW_TAG_structure_type) {
class__find_holes(pos);
if (pos->nr_holes > 0)
class__print(pos);
if (pos->nr_holes == 0)
continue;
}
class__print(pos);
}
}