From 10cc645b6a09c58cf1a5ce53accbe6cf3178ca12 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 19 Nov 2021 22:43:56 -0500 Subject: 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 --- gdb/source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/source.c') diff --git a/gdb/source.c b/gdb/source.c index 07ea2af..e6ba448 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -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")); } -- cgit v1.1