aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-file.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/mi/mi-cmd-file.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/mi/mi-cmd-file.c')
-rw-r--r--gdb/mi/mi-cmd-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c
index 23c6d70..f4ee791 100644
--- a/gdb/mi/mi-cmd-file.c
+++ b/gdb/mi/mi-cmd-file.c
@@ -59,7 +59,7 @@ mi_cmd_file_list_exec_source_file (const char *command, char **argv, int argc)
uiout->field_string ("fullname", symtab_to_fullname (st.symtab));
uiout->field_signed ("macro-info",
- COMPUNIT_MACRO_TABLE (SYMTAB_COMPUNIT (st.symtab)) != NULL);
+ SYMTAB_COMPUNIT (st.symtab)->macro_table () != NULL);
}
/* Implement -file-list-exec-source-files command. */