gdb: move compunit_filetabs to compunit_symtab::filetabs
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 20 Nov 2021 02:18:05 +0000 (21:18 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 6 Feb 2022 20:48:18 +0000 (15:48 -0500)
commit102cc23543fc37b42c4814f594f130f862397178
tree641e7dce863b6e1aa80b58aafeb5bc2ae862fa49
parent36664835fa3f81503633024e0e834be4d84276e1
gdb: move compunit_filetabs to compunit_symtab::filetabs

Make compunit_filetabs, used to iterate a compunit_symtab's filetabs, a
method of compunit_symtab.  The name filetabs conflicts with the current
name of the field.  Rename the field to m_filetabs, since at this point
nothing outside of compunit_symtab uses it, so we should treat it as
private (even though it's not actually private).  Rename the
last_filetab field to m_last_filetab as well (it's only used on
compunit_symtab::add_filetab).

Adjust the COMPUNIT_FILETABS macro to keep its current behavior of
returning the first filetab.

Change-Id: I537b553a44451c52d24b18ee1bfa47e23747cfc3
gdb/coffread.c
gdb/maint.c
gdb/objfiles.c
gdb/source.c
gdb/symmisc.c
gdb/symtab.c
gdb/symtab.h