[LIB]: Add missing { in typedef__print
That was preventing the correct printing of anonymous struct typedefs. Signed-off-by: Davi Arnaut <davi@haxent.com.br> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
a4856181a7
commit
4e93019433
|
@ -402,12 +402,13 @@ static void typedef__print(const struct tag *tag_self, const struct cu *cu)
|
|||
case DW_TAG_structure_type: {
|
||||
const struct type *ctype = tag__type(type);
|
||||
|
||||
if (ctype->name != NULL)
|
||||
if (ctype->name != NULL) {
|
||||
printf("typedef struct %s %s",
|
||||
ctype->name, self->name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
printf("typedef %s %s", tag__name(type, cu, bf, sizeof(bf)),
|
||||
self->name);
|
||||
|
|
Loading…
Reference in New Issue