]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: constification around abbrev_table_cache and abbrev_table
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Nov 2024 18:27:33 +0000 (13:27 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 26 Nov 2024 03:07:03 +0000 (22:07 -0500)
commitc9e2e9992adfcd520caa920f8e90b8339d40270b
tree94d1eb596066d694165023a1e897f17c0eb7299e
parent020c5193ac86ac753441a3302b0f2bdc10d5c616
gdb: constification around abbrev_table_cache and abbrev_table

Make `abbrev_table_cache::find` const, make it return a pointer to
`const abbrev_table`, adjust the fallouts.

Make `cooked_index_storage::get_abbrev_table_cache` const, make itreturn
a pointer to const `abbrev_table_cache`.

Change-Id: If63b4b3a4c253f3bd640b13bce4a854eb2d75ece
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/abbrev-table-cache.h
gdb/dwarf2/cooked-index.h
gdb/dwarf2/read.c