]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Only add range to CU DIE coverage if low_pc > high_pc
authorPetr Machata <pmachata@redhat.com>
Tue, 22 Mar 2011 11:50:36 +0000 (12:50 +0100)
committerPetr Machata <pmachata@redhat.com>
Tue, 22 Mar 2011 11:50:36 +0000 (12:50 +0100)
dwarflint/check_debug_info.cc

index 32bfd572b44f55dd9b5eb3936d7b262991b07726..dd0898530806d300c2694adf5b47b9d5875d3daa 100644 (file)
@@ -950,7 +950,7 @@ namespace
          {
            cu->low_pc = low_pc;
 
-           if (high_pc != (uint64_t)-1)
+           if (high_pc != (uint64_t)-1 && high_pc > low_pc)
              pc_coverage->add (low_pc, high_pc - low_pc);
          }