char buf[128];
where where = WHERE (info.id, NULL);
char const *what = info.what;
- char const *cu = "CUs";
+ char const *cu = "CU DIEs";
if (info.reverse)
{
char const *tmp = what;
enum section_id id, char const *what)
{
compare_coverage_1 (file, coverage, other, id, what, false);
- compare_coverage_1 (file, other, coverage, id, what, false);
+ compare_coverage_1 (file, other, coverage, id, what, true);
}
inline static void
high_pc += low_pc;
}
- /* Check PC coverage. */
+ /* Check PC coverage. We do that only for CU DIEs. Any DIEs
+ lower in the tree (should) take subset of addresses taken
+ by the CU DIE. */
if (is_cudie && low_pc != (uint64_t)-1)
{
cu->low_pc = low_pc;
testrun_compare ./dwarflint --strict aranges_terminate_early <<EOF
warning: .debug_aranges: [0x20, 0x30): unnecessary padding with zero bytes.
-warning: .debug_aranges: addresses [0x400474, 0x400481) are covered with CUs, but not with aranges.
+warning: .debug_aranges: addresses [0x400474, 0x400481) are covered with CU DIEs, but not with aranges.
EOF
testrun_compare ./dwarflint --check=check_debug_aranges --strict aranges_terminate_early <<EOF
warning: .debug_aranges: [0x20, 0x30): unnecessary padding with zero bytes.
-warning: .debug_aranges: addresses [0x400474, 0x400481) are covered with CUs, but not with aranges.
+warning: .debug_aranges: addresses [0x400474, 0x400481) are covered with CU DIEs, but not with aranges.
EOF