diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 22:43:56 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:19 -0500 |
commit | 10cc645b6a09c58cf1a5ce53accbe6cf3178ca12 (patch) | |
tree | 1c66ae2f2ca011fa051bee725a67cf3180123704 /gdb/macroscope.c | |
parent | 3908b699f8d08499ad53adcb34e8a4675cf39142 (diff) | |
download | binutils-10cc645b6a09c58cf1a5ce53accbe6cf3178ca12.zip binutils-10cc645b6a09c58cf1a5ce53accbe6cf3178ca12.tar.gz binutils-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/macroscope.c')
-rw-r--r-- | gdb/macroscope.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/macroscope.c b/gdb/macroscope.c index 0207096..c581c42 100644 --- a/gdb/macroscope.c +++ b/gdb/macroscope.c @@ -44,12 +44,12 @@ sal_macro_scope (struct symtab_and_line sal) if (sal.symtab == NULL) return NULL; cust = SYMTAB_COMPUNIT (sal.symtab); - if (COMPUNIT_MACRO_TABLE (cust) == NULL) + if (cust->macro_table () == NULL) return NULL; gdb::unique_xmalloc_ptr<struct macro_scope> ms (XNEW (struct macro_scope)); - main_file = macro_main (COMPUNIT_MACRO_TABLE (cust)); + main_file = macro_main (cust->macro_table ()); inclusion = macro_lookup_inclusion (main_file, sal.symtab->filename); if (inclusion) |