]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: When --nohl is given, don't run check_matching_ranges, but do run check_lo...
authorPetr Machata <pmachata@redhat.com>
Fri, 13 Mar 2009 13:07:07 +0000 (14:07 +0100)
committerPetr Machata <pmachata@redhat.com>
Fri, 13 Mar 2009 13:07:07 +0000 (14:07 +0100)
src/dwarflint.c

index 5ae3e19b553b84d64faf7d73b5a5d79c30a17c32..3bda25ff05cd13912ed96ffb42007fb91b198fda 100644 (file)
@@ -1219,14 +1219,14 @@ process_file (Dwarf *dwarf, const char *fname, bool only_one)
   else
     ranges_sound = false;
 
-  if (loc_data.data != NULL && cu_chain != NULL && do_high_level)
+  if (loc_data.data != NULL && cu_chain != NULL)
     check_loc_or_range_structural (&loc_data, cu_chain);
 
   if (aranges_data.data != NULL)
     {
       read_ctx_init (&ctx, dwarf, aranges_data.data);
       if (check_aranges_structural (&aranges_data, cu_chain)
-         && ranges_sound)
+         && ranges_sound && do_high_level)
        check_matching_ranges (hlctx);
     }