]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add language to cooked_index_entry
authorTom Tromey <tom@tromey.com>
Sat, 2 Dec 2023 22:42:42 +0000 (15:42 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 18 Jan 2024 15:20:16 +0000 (08:20 -0700)
commit5902fa8a555c43780dedfde1ed1a8be933b395f9
tree7ab1bced2ed6fb73f5446b61048b86eb1c43f74a
parent374807b60751a5f890005d16dd8b466b22185a3f
Add language to cooked_index_entry

This adds a new 'lang' member to cooked_index_entry.  This holds the
language of the symbol.  This is primarily useful for the new
.debug_names reader, which will not scan the CUs for languages up
front.

This also changes cooked_index_shard::add to return a non-const
pointer.  This doesn't impact the current code, but is needed for the
new reader.
gdb/dwarf2/cooked-index.c
gdb/dwarf2/cooked-index.h
gdb/dwarf2/index-write.c