From 53ede5ee1649ee3690fdb22025dd0e5fd76a1262 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Thu, 24 May 2007 17:19:21 -0300 Subject: [PATCH] [PDWTAGS]: Use conf_fprintf in pdwtags So that it prints struct stats and decl info (file/line number were tags were declared). Signed-off-by: Arnaldo Carvalho de Melo --- pdwtags.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pdwtags.c b/pdwtags.c index 1fa6311..51e5527 100644 --- a/pdwtags.c +++ b/pdwtags.c @@ -12,6 +12,11 @@ #include "dwarves.h" +static const struct conf_fprintf conf = { + .emit_stats = 1, + .show_decl_info = 1, +}; + static int emit_tag(struct tag *self, struct cu *cu, void *cookie __unused) { if (self->tag != DW_TAG_array_type && @@ -25,7 +30,7 @@ static int emit_tag(struct tag *self, struct cu *cu, void *cookie __unused) if (self->tag == DW_TAG_structure_type) class__find_holes(tag__class(self), cu); - tag__fprintf(self, cu, NULL, stdout); + tag__fprintf(self, cu, &conf, stdout); if (self->tag == DW_TAG_subprogram) { const struct function *fn = tag__function(self);