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:
parent
19bbecf668
commit
d2581fa5aa
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue