dwarves_fprintf: Revert experimentation with const rendering

Still doesn't fixes the case "const char * const foo"...

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-08-19 10:04:54 -03:00
parent 19bbecf668
commit d2581fa5aa
1 changed files with 3 additions and 5 deletions

View File

@ -342,11 +342,9 @@ static const char *tag__ptr_name(const struct tag *self, const struct cu *cu,
snprintf(bf + l, len - l, " %s", ptr_suffix);
} else {
char tmpbf[1024];
const char *stype = tag__name(type, cu, tmpbf, sizeof(tmpbf));
if (type->tag == DW_TAG_const_type)
snprintf(bf, len, "%s %s", ptr_suffix, stype);
else
snprintf(bf, len, "%s %s", stype, ptr_suffix);
snprintf(bf, len, "%s %s",
tag__name(type, cu,
tmpbf, sizeof(tmpbf)), ptr_suffix);
}
}