]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/cp-namespace.c
gdb: remove BLOCK_SUPERBLOCK macro
[thirdparty/binutils-gdb.git] / gdb / cp-namespace.c
index d84486e8bf7746fc26115755bc1e65f61a79a4e5..e734effe7f0a05a248f3a59fece8950b1357af34 100644 (file)
@@ -547,7 +547,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
          struct type *context;
          std::string name_copy (function->natural_name ());
          const struct language_defn *lang = language_def (language_cplus);
-         const struct block *parent = BLOCK_SUPERBLOCK (block);
+         const struct block *parent = block->superblock ();
          struct symbol *sym;
 
          while (1)
@@ -615,7 +615,7 @@ cp_lookup_symbol_via_all_imports (const char *scope, const char *name,
       if (sym.symbol)
        return sym;
 
-      block = BLOCK_SUPERBLOCK (block);
+      block = block->superblock ();
     }
 
   return {};