diff options
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 7188169..d5d3877 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -6602,11 +6602,11 @@ symbol::objfile () const /* See symtab.h. */ struct gdbarch * -symbol_arch (const struct symbol *symbol) +symbol::arch () const { - if (!symbol->is_objfile_owned ()) - return symbol->owner.arch; - return symbol->owner.symtab->compunit ()->objfile ()->arch (); + if (!is_objfile_owned ()) + return owner.arch; + return owner.symtab->compunit ()->objfile ()->arch (); } /* See symtab.h. */ |