[CLASSES]: Handle DW_TAG_subroutine_type in tag__name

This has to be reworked as it doesn't do the right thing, it has to be a mask
as function pointers needs, but variables are not something so heavily used in
the more interesting tools, so leave this for later.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-01-04 13:06:29 -02:00
parent b11c508509
commit 78ae95c02d
1 changed files with 3 additions and 1 deletions

View File

@ -704,7 +704,9 @@ const char *tag__name(const struct tag *self, const struct cu *cu,
} else if (self->tag == DW_TAG_array_type) {
type = cu__find_tag_by_id(cu, self->type);
return tag__name(type, cu, bf, len);
} else
} else if (self->tag == DW_TAG_subroutine_type)
ftype__snprintf(tag__ftype(self), cu, bf, len, NULL, 0, 0, 0);
else
snprintf(bf, len, "%s%s", tag__prefix(cu, self->tag),
tag__class(self)->name ?: "");
return bf;