]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Promote duplicate-arange-for-CPU to error
authorPetr Machata <pmachata@redhat.com>
Thu, 30 Sep 2010 15:01:50 +0000 (17:01 +0200)
committerPetr Machata <pmachata@redhat.com>
Thu, 30 Sep 2010 15:01:50 +0000 (17:01 +0200)
dwarflint/check_debug_aranges.cc
dwarflint/tests/run-check_debug_info_refs.sh

index c817fd9d0e7606b27f9e076eb80fb088fb2478a6..bae345a1c31abbf3f2b65274f7300cbb0d9ad55c 100644 (file)
@@ -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;
        }
index 25fa2dc615b7797e68cf2e3ab311ebc34c270131..a1f80a8f9986e486c6d2c82293d938500be9a335 100755 (executable)
@@ -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 <<EOF
+error: .debug_aranges: table 48 (CU DIE 95): there has already been arange section for this CU.
+EOF
+
 testrun_compare ./dwarflint --strict --check=check_debug_info_refs check_debug_info_refs-1 <<EOF
-warning: .debug_aranges: table 48 (CU DIE 95): there has already been arange section for this CU.
+error: .debug_aranges: table 48 (CU DIE 95): there has already been arange section for this CU.
 warning: .debug_info: CU 0: no aranges table is associated with this CU.
 EOF