[CLASSES]: Follow const types to get to the real type

Fixes a bug where 'const char name[29]' was being printed as
'const char name;'.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2006-11-29 18:33:22 -02:00
parent fceec841ca
commit 71cdd0f588
1 changed files with 3 additions and 0 deletions

View File

@ -456,6 +456,9 @@ uint64_t class_member__names(const struct class_member *self,
snprintf(class_name, class_name_size, "<%llx>",
self->tag.type);
else {
if (class->tag.tag == DW_TAG_const_type)
class = cu__find_class_by_id(class->cu,
class->tag.type);
size = class__size(class);
/* Is it a function pointer? */