From 9e6b619ad084c58af9fb8983b1a646192adb3835 Mon Sep 17 00:00:00 2001 From: jimblandy Date: Mon, 5 Apr 2010 19:35:10 +0000 Subject: Breakpad Linux Dumper: Disable warnings about unpaired functions and lines by default. In the process of pairing up DWARF source lines with the functions they belong to, the dumper detects and warns about regions of functions that have no source line information, and vice versa. However, this seems to occur in real code frequently enough (although not often) that the warnings may obscure more serious problems. This patch makes those warnings disabled by default in DwarfCUToModule::WarningReporter. It does not add a way for the dump_syms user to enable them. a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@566 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/linux/dwarf_cu_to_module.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/linux/dwarf_cu_to_module.cc') diff --git a/src/common/linux/dwarf_cu_to_module.cc b/src/common/linux/dwarf_cu_to_module.cc index 9ad3393c..59efebc4 100644 --- a/src/common/linux/dwarf_cu_to_module.cc +++ b/src/common/linux/dwarf_cu_to_module.cc @@ -493,6 +493,8 @@ void DwarfCUToModule::WarningReporter::UncoveredHeading() { void DwarfCUToModule::WarningReporter::UncoveredFunction( const Module::Function &function) { + if (!uncovered_warnings_enabled_) + return; UncoveredHeading(); fprintf(stderr, " function%s: %s\n", function.size == 0 ? " (zero-length)" : "", @@ -500,6 +502,8 @@ void DwarfCUToModule::WarningReporter::UncoveredFunction( } void DwarfCUToModule::WarningReporter::UncoveredLine(const Module::Line &line) { + if (!uncovered_warnings_enabled_) + return; UncoveredHeading(); fprintf(stderr, " line%s: %s:%d at 0x%llx\n", (line.size == 0 ? " (zero-length)" : ""), -- cgit v1.2.1