From 89ce57a02e3aec59365eaea5c9f06a9043550908 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Fri, 5 Apr 2019 11:34:33 -0300 Subject: [PATCH] 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 --- pdwtags.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdwtags.c b/pdwtags.c index 1d300e6..3b8f559 100644 --- a/pdwtags.c +++ b/pdwtags.c @@ -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,