]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove dwarf2_per_cu_data::mark
authorTom Tromey <tom@tromey.com>
Sat, 7 Dec 2024 22:51:24 +0000 (15:51 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 22:05:28 +0000 (16:05 -0600)
commit29fa4279c2f1bc2e0ac7cf77a95cbc0d83dd3c4a
tree83de639b139f6fd189c461888690bd7b9eff9d6b
parente7605fe0c0f7fa14dff86373f2baae2d56da1d30
Remove dwarf2_per_cu_data::mark

This removes dwarf2_per_cu_data::mark, replacing it with a
locally-allocated boolean vector.  It also inverts the sense of the
flag -- now, the flag is true when a CU should be skipped, and false
when the CU should be further examined.  Also, the validity of the
flag is no longer dependent on 'file_matcher != NULL'.

This patch makes the subsequent patch to searching a bit simpler, so
I've separated it out.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=16994
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=16998
Acked-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/read-gdb-index.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h