From: Tom Tromey Date: Sat, 16 Apr 2022 20:19:18 +0000 (-0600) Subject: Use symbol_symtab accessor in compile-object-load.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b70bcb00f443259b444b3fc543899047ac7f44e;p=binutils-gdb.git Use symbol_symtab accessor in compile-object-load.c I noticed that compile-object-load.c directly references owner.symtab of a symbol. However, I think it's better for all users to call symbol_symtab. This patch makes this change. --- diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index dee7882e7e3..7da02c07f9b 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -421,7 +421,7 @@ get_out_value_type (struct symbol *func_sym, struct objfile *objfile, lookup_name_info func_matcher (GCC_FE_WRAPPER_FUNCTION, symbol_name_match_type::SEARCH_NAME); - bv = func_sym->owner.symtab->compunit ()->blockvector (); + bv = symbol_symtab (func_sym)->compunit ()->blockvector (); nblocks = BLOCKVECTOR_NBLOCKS (bv); gdb_ptr_type_sym = NULL;