diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-16 14:19:18 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-04-20 06:50:59 -0600 |
commit | 3b70bcb00f443259b444b3fc543899047ac7f44e (patch) | |
tree | e7a67a2fd76353ed78dca64ed83aa7f41fc92730 /gdb/compile | |
parent | 65daf5bed68f3e792e80f7c9a12871fd71da32a2 (diff) | |
download | gdb-3b70bcb00f443259b444b3fc543899047ac7f44e.zip gdb-3b70bcb00f443259b444b3fc543899047ac7f44e.tar.gz gdb-3b70bcb00f443259b444b3fc543899047ac7f44e.tar.bz2 |
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.
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-object-load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index dee7882..7da02c0 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; |