public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use symbol_symtab accessor in compile-object-load.c
@ 2022-04-20 12:51 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-04-20 12:51 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3b70bcb00f443259b444b3fc543899047ac7f44e

commit 3b70bcb00f443259b444b3fc543899047ac7f44e
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Apr 16 14:19:18 2022 -0600

    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:
---
 gdb/compile/compile-object-load.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-20 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 12:51 [binutils-gdb] Use symbol_symtab accessor in compile-object-load.c Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).