gdb: remove SYMTAB_COMPUNIT macro, add getter/setter
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 20 Nov 2021 03:49:01 +0000 (22:49 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 6 Feb 2022 20:48:19 +0000 (15:48 -0500)
commitc61596525811d9b0fe79be8f11e5a142ade96dab
tree8bc43629e072791d0790a2264c0b1fcd7998bd3b
parent10cc645b6a09c58cf1a5ce53accbe6cf3178ca12
gdb: remove SYMTAB_COMPUNIT macro, add getter/setter

Add a getter and a setter for a symtab's compunit_symtab.  Remove the
corresponding macro and adjust all callers.

For brevity, I chose the name "compunit" instead of "compunit_symtab"
the the field, getter and setter names.  Since we are already in symtab
context, the _symtab suffix seems redundant.

Change-Id: I4b9b731c96e3594f7733e75af1e3d01bc0e4fe92
13 files changed:
gdb/amd64-tdep.c
gdb/breakpoint.c
gdb/macroscope.c
gdb/mdebugread.c
gdb/mi/mi-cmd-file.c
gdb/or1k-tdep.c
gdb/python/py-symtab.c
gdb/source.c
gdb/symfile.c
gdb/symmisc.c
gdb/symtab.c
gdb/symtab.h
gdb/z80-tdep.c