From: Petr Machata Date: Thu, 30 Sep 2010 15:01:50 +0000 (+0200) Subject: dwarflint: Promote duplicate-arange-for-CPU to error X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7c452cfc99fdd8fb270d12bc8c27e2188da15cf;p=thirdparty%2Felfutils.git dwarflint: Promote duplicate-arange-for-CPU to error --- diff --git a/dwarflint/check_debug_aranges.cc b/dwarflint/check_debug_aranges.cc index c817fd9d0..bae345a1c 100644 --- a/dwarflint/check_debug_aranges.cc +++ b/dwarflint/check_debug_aranges.cc @@ -263,8 +263,9 @@ check_aranges_structural (struct elf_file *file, where.ref = &where_cudie; where_cudie.formatting = wf_cudie; if (cu->has_arange) - wr_message (mc_impact_2 | mc_aranges | mc_header, &where, - ": there has already been arange section for this CU.\n"); + wr_error (where) + << "there has already been arange section for this CU." + << std::endl; else cu->has_arange = true; } diff --git a/dwarflint/tests/run-check_debug_info_refs.sh b/dwarflint/tests/run-check_debug_info_refs.sh index 25fa2dc61..a1f80a8f9 100755 --- a/dwarflint/tests/run-check_debug_info_refs.sh +++ b/dwarflint/tests/run-check_debug_info_refs.sh @@ -29,7 +29,11 @@ srcdir=$srcdir/tests testfiles check_debug_info_refs-1 +testrun_compare ./dwarflint --check=check_debug_info_refs check_debug_info_refs-1 <