Constify linetables
authorTom Tromey <tom@tromey.com>
Wed, 8 Mar 2023 01:16:29 +0000 (18:16 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 11 Mar 2023 15:48:10 +0000 (08:48 -0700)
commit977a0c161de83a5e5397f9f7950d58173c4b4be2
tree5264db12f959dba8dfddaac35b4008ee02a4253a
parent1acc9dca423f78e44553928f0de839b618c13766
Constify linetables

Linetables no longer change after they are created.  This patch
applies const to them.

Note there is one hack to cast away const in mdebugread.c.  This code
allocates a linetable using 'malloc', then later copies it to the
obstack.  While this could be cleaned up, I chose not to do so because
I have no way of testing it.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/buildsym.c
gdb/disasm.c
gdb/jit.c
gdb/linespec.c
gdb/mdebugread.c
gdb/python/py-linetable.c
gdb/record-btrace.c
gdb/symmisc.c
gdb/symtab.c
gdb/symtab.h