gdb: remove COMPUNIT_MACRO_TABLE macro, add getter/setter

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

Change-Id: I00615ea72d5ac43d9a865e941cb2de0a979c173a
This commit is contained in:
Simon Marchi 2021-11-19 22:43:56 -05:00 committed by Simon Marchi
parent 3908b699f8
commit 10cc645b6a
5 changed files with 17 additions and 9 deletions

View file

@ -729,8 +729,8 @@ info_source_command (const char *ignore, int from_tty)
printf_filtered (_("Compiled with %s debugging format.\n"),
cust->debugformat ());
printf_filtered (_("%s preprocessor macro info.\n"),
COMPUNIT_MACRO_TABLE (cust) != NULL
? "Includes" : "Does not include");
(cust->macro_table () != nullptr
? "Includes" : "Does not include"));
}