gdb/dwarf: change CUs -> units in print_stats

Change the messages to reflect that these numbers includes type units,
not only compile units.

Change-Id: Id2f511d4666e5cf92112be917d72ff76791b7e1d
Approved-by: Kevin Buettner <kevinb@redhat.com>
This commit is contained in:
Simon Marchi
2025-06-18 16:03:20 -04:00
committed by Simon Marchi
parent 17cae8183b
commit 7af3b05ce9
2 changed files with 4 additions and 4 deletions

View File

@@ -1906,8 +1906,8 @@ dwarf2_base_index_functions::print_stats (struct objfile *objfile,
if (!per_objfile->symtab_set_p (per_cu))
++count;
}
gdb_printf (_(" Number of read CUs: %d\n"), total - count);
gdb_printf (_(" Number of unread CUs: %d\n"), count);
gdb_printf (_(" Number of read units: %d\n"), total - count);
gdb_printf (_(" Number of unread units: %d\n"), count);
}
void

View File

@@ -239,8 +239,8 @@ set re \
"( Number of \"partial\" symbols read: $decimal" \
")?( Number of psym tables \\(not yet expanded\\): $decimal" \
")?( Total memory used for psymbol cache: $decimal" \
")?( Number of read CUs: $decimal" \
" Number of unread CUs: $decimal" \
")?( Number of read units: $decimal" \
" Number of unread units: $decimal" \
")? Total memory used for objfile obstack: $decimal" \
" Total memory used for BFD obstack: $decimal" \
" Total memory used for string cache: $decimal" \