[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 <acme@ghostprotocols.net>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-05-24 17:19:21 -03:00
parent de9aa81358
commit 53ede5ee16
1 changed files with 6 additions and 1 deletions

View File

@ -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);