]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/cp-namespace.c
move gdbarch object from objfile to per-BFD
[thirdparty/binutils-gdb.git] / gdb / cp-namespace.c
index 755aeef89d9cf73c9c16e2f9e47f8ba529536869..36134c0b00b5a5550bf9b9ea26d9f33b5795d72f 100644 (file)
@@ -473,7 +473,8 @@ cp_lookup_symbol_imports_or_template (const char *scope,
          char *name_copy = xstrdup (SYMBOL_NATURAL_NAME (function));
          struct cleanup *cleanups = make_cleanup (xfree, name_copy);
          const struct language_defn *lang = language_def (language_cplus);
-         struct gdbarch *arch = SYMBOL_SYMTAB (function)->objfile->gdbarch;
+         struct gdbarch *arch
+           = get_objfile_arch (SYMBOL_SYMTAB (function)->objfile);
          const struct block *parent = BLOCK_SUPERBLOCK (block);
 
          while (1)