pdwtags: Find holes in structs

The pdwtags prints all tags, so call class__find_holes() for structs so
that we don't print BFAs.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2019-04-05 11:34:33 -03:00
parent ce6f393bc9
commit 89ce57a02e
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ static void emit_tag(struct tag *tag, uint32_t tag_id, struct cu *cu)
{
printf("/* %d */\n", tag_id);
if (tag__is_struct(tag))
class__find_holes(tag__class(tag));
if (tag->tag == DW_TAG_base_type) {
char bf[64];
const char *name = base_type__name(tag__base_type(tag), cu,