]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: make symbols const in struct inline_state
authorAndrew Burgess <aburgess@redhat.com>
Tue, 13 Aug 2024 12:07:19 +0000 (13:07 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 28 Aug 2024 09:29:43 +0000 (10:29 +0100)
commit3e9907d8496edb66086dcdebd3a9cb2b3c918e77
tree63c9960b583c22a110bb47cef67dbde3be1a39f9
parenta6feefa6eb924493c7648cde03ef2b2d7252323d
gdb: make symbols const in struct inline_state

Make the inline_state::skipped_symbols a vector of 'const symbol *',
adding the const qualifier.

There's only a couple of places this leaks into the rest of GDB and in
both places its fine for the symbol to become const.

There should be no functional change after this commit.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/frame.c
gdb/infcmd.c
gdb/inline-frame.c
gdb/inline-frame.h