aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 22:43:56 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:19 -0500
commit10cc645b6a09c58cf1a5ce53accbe6cf3178ca12 (patch)
tree1c66ae2f2ca011fa051bee725a67cf3180123704 /gdb/source.c
parent3908b699f8d08499ad53adcb34e8a4675cf39142 (diff)
downloadgdb-10cc645b6a09c58cf1a5ce53accbe6cf3178ca12.zip
gdb-10cc645b6a09c58cf1a5ce53accbe6cf3178ca12.tar.gz
gdb-10cc645b6a09c58cf1a5ce53accbe6cf3178ca12.tar.bz2
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
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c4
1 files changed, 2 insertions, 2 deletions
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"));
}