diff options
Diffstat (limited to 'gdb/macroscope.c')
-rw-r--r-- | gdb/macroscope.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/macroscope.c b/gdb/macroscope.c index 02070967579..93f561acccd 100644 --- a/gdb/macroscope.c +++ b/gdb/macroscope.c @@ -43,13 +43,14 @@ 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) + + cust = sal.symtab->compunit (); + 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) |