[DWARVES]: Check if ancestor classes were found in class__fprintf

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2008-04-19 12:12:13 -03:00
parent f061c18406
commit e288817933
1 changed files with 5 additions and 1 deletions

View File

@ -2006,7 +2006,11 @@ size_t class__fprintf(struct class *self, const struct cu *cu,
printed += fprintf(fp, " %s", accessibility);
type = cu__find_tag_by_id(cu, tag_pos->type);
printed += fprintf(fp, " %s", type__name(tag__type(type), cu));
if (type != NULL)
printed += fprintf(fp, " %s", type__name(tag__type(type), cu));
else
printed += fprintf(fp, " <ERROR! %#llx NOT FOUND!>",
(unsigned long long)tag_pos->type);
}
printed += fprintf(fp, " {\n");