diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 22:49:01 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:19 -0500 |
commit | c61596525811d9b0fe79be8f11e5a142ade96dab (patch) | |
tree | 8bc43629e072791d0790a2264c0b1fcd7998bd3b /gdb/mi/mi-cmd-file.c | |
parent | gdb: remove COMPUNIT_MACRO_TABLE macro, add getter/setter (diff) | |
download | binutils-gdb-c61596525811d9b0fe79be8f11e5a142ade96dab.tar.gz binutils-gdb-c61596525811d9b0fe79be8f11e5a142ade96dab.tar.bz2 binutils-gdb-c61596525811d9b0fe79be8f11e5a142ade96dab.zip |
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
Diffstat (limited to 'gdb/mi/mi-cmd-file.c')
-rw-r--r-- | gdb/mi/mi-cmd-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c index f4ee791f17b..0ed7bed82e2 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", - SYMTAB_COMPUNIT (st.symtab)->macro_table () != NULL); + st.symtab->compunit ()->macro_table () != NULL); } /* Implement -file-list-exec-source-files command. */ |