More const-correctness in cooked indexer
authorTom Tromey <tromey@adacore.com>
Fri, 27 Jan 2023 16:20:43 +0000 (09:20 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 27 Jan 2023 21:12:01 +0000 (14:12 -0700)
commit35e1763185224b2bf634e19cdfd06dab0ba914e3
treef7dd44aeffd0ede58573d7d80dc3304f8b4b6dab
parentd9195131530370f56e78a2b084928c11da536d9e
More const-correctness in cooked indexer

I noticed that iterating over the index yields non-const
cooked_index_entry objects.  However, after finalization, they should
not be modified.  This patch enforces this by adding const where
needed.

v2 makes the find, all_entries, and wait methods const as well.
gdb/dwarf2/cooked-index.c
gdb/dwarf2/cooked-index.h