aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-06-18 16:03:20 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2025-06-19 13:17:51 -0400
commit7af3b05ce933624c1283331c11e49fea6ced9d96 (patch)
tree1deaaad4ce32c027f36ef1568601004ecea08549
parent17cae8183badcb97b6a64b62d2515642fc06c839 (diff)
downloadbinutils-7af3b05ce933624c1283331c11e49fea6ced9d96.zip
binutils-7af3b05ce933624c1283331c11e49fea6ced9d96.tar.gz
binutils-7af3b05ce933624c1283331c11e49fea6ced9d96.tar.bz2
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>
-rw-r--r--gdb/dwarf2/read.c4
-rw-r--r--gdb/testsuite/gdb.base/maint.exp4
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 0afc836..2f27b7c 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -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
diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp
index 43fc2c0..7936e53 100644
--- a/gdb/testsuite/gdb.base/maint.exp
+++ b/gdb/testsuite/gdb.base/maint.exp
@@ -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" \