]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: track compilation and type unit count
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 9 Jul 2025 15:35:08 +0000 (11:35 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 1 Aug 2025 04:25:15 +0000 (00:25 -0400)
commitbedd6a7a44f0d02f087595888a6cba44e2f6d1ce
tree7b53f9ab79b5f4f899bb028146e29a2c29c74451
parente443ffcf791dee6ef8ad5205986fe6fc46ed3295
gdb/dwarf: track compilation and type unit count

A subsequent commit will remove the all_comp_units and all_type_units
array views, since it's not possible to assume that that all_units
vector is segmented between comp and type units.  Some callers still
need to know the number of each kind, so track that separately.

Change-Id: I712fbdfbf10b333c431b688b881cc0987e74f688
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read.c
gdb/dwarf2/read.h