gdb: remove COMPUNIT_FILETABS macro
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 20 Nov 2021 02:35:17 +0000 (21:35 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 6 Feb 2022 20:48:18 +0000 (15:48 -0500)
commit510860f2787f354d1c294958e4cc5e81256ece58
tree12a7f08e5386b2986994665fe7c43b0eea80ade8
parent102cc23543fc37b42c4814f594f130f862397178
gdb: remove COMPUNIT_FILETABS macro

I think that most remaining uses of COMPUNIT_FILETABS intend to get the
primary filetab of the compunit_symtab specifically (and not to iterate
over all filetabs, for example, those cases would use compunit_filetabs,
which has been converted to compunit_symtab::filetabs), so replace mosts
uses with compunit_symtab::primary_filetab.

In jit.c, function finalize_symtab, we can save the symtab object
returned by allocate_symtab and use it, it makes things simpler.

Change-Id: I4e51d6d4b40759de8768b61292e5e13c8eae2e38
gdb/buildsym.c
gdb/dwarf2/read.c
gdb/jit.c
gdb/linespec.c
gdb/mdebugread.c
gdb/symmisc.c
gdb/symtab.h