summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-07-30 00:06:59 +0200
committerMark Wielaard <mjw@redhat.com>2009-07-30 00:17:09 +0200
commit83ca3872dadc89c5a8155150bf76d5c09890dcc9 (patch)
tree5778940a299b310ac862cb4b6e1f7675c99b8b79 /translate.cxx
parent8823ee6a3fcf47adbb7314c6fd560e6c952c4705 (diff)
downloadsystemtap-steved-83ca3872dadc89c5a8155150bf76d5c09890dcc9.tar.gz
systemtap-steved-83ca3872dadc89c5a8155150bf76d5c09890dcc9.tar.xz
systemtap-steved-83ca3872dadc89c5a8155150bf76d5c09890dcc9.zip
PR10459. Disable all warning messages on -w.
* stap.1.in: Document that -w disables all warning messages. * dwflpp.cxx (get_module_dwarf): Only output warning when session suppress_warnings is not set. * translate.cxx (dump_unwindsyms): Likewise. (emit_symbol_data_done): Likewise. * tapsets.cxx (query_module_symtab): Likewise. (read_from_elf_file): Take systemtap_session, check suppress_warnings before emitting warning. (read_from_text_file): Likewise. (get_symtab): Call read_from_elf_file and read_from_text_file with session.
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/translate.cxx b/translate.cxx
index 9c901065..f2e04d7d 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -4779,7 +4779,7 @@ dump_unwindsyms (Dwfl_Module *m,
// likely can't do anything about this; backtraces for the
// affected module would just get all icky heuristicy.
// So only report in verbose mode.
- if (c->session.verbose > 2)
+ if (c->session.verbose > 2 && ! c->session.suppress_warnings)
c->session.print_warning ("No unwind data for " + modname
+ ", " + dwfl_errmsg (-1));
}
@@ -5080,12 +5080,12 @@ emit_symbol_data_done (unwindsym_dump_context *ctx, systemtap_session& s)
<< ";\n";
// Some nonexistent modules may have been identified with "-d". Note them.
- for (set<string>::iterator it = ctx->undone_unwindsym_modules.begin();
- it != ctx->undone_unwindsym_modules.end();
- it ++)
- {
- s.print_warning ("missing unwind/symbol data for module '" + (*it) + "'");
- }
+ if (! s.suppress_warnings)
+ for (set<string>::iterator it = ctx->undone_unwindsym_modules.begin();
+ it != ctx->undone_unwindsym_modules.end();
+ it ++)
+ s.print_warning ("missing unwind/symbol data for module '"
+ + (*it) + "'");
}