+2009-08-21 Roland McGrath <roland@redhat.com>
+
+ * print-die.hh (print_die_main, print_file): Add --silent option.
+
2009-08-19 Roland McGrath <roland@redhat.com>
* print-die.hh: Handle --norefs, --dump-refs.
static bool sort_attrs;
static bool elide_refs;
static bool dump_refs;
+static bool no_print;
static enum { copy_none, copy_edit, copy_output } make_copy;
++argv;
}
+ if (argc > 1 && !strcmp (argv[1], "--silent"))
+ {
+ no_print = true;
+ --argc;
+ ++argv;
+ }
+
depth = 0;
if (argc > 1 && sscanf (argv[1], "--depth=%u", &depth) == 1)
{
static void
print_file (const file &dw, const unsigned int limit)
{
+ if (no_print)
+ return;
+
for (typename file::compile_units::const_iterator i
= dw.compile_units ().begin (); i != dw.compile_units ().end (); ++i)
print_cu<file> (*i, limit);