diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 11:41:38 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | f135fe728e2d0a6168a8445a50a6d63547c4db2f (patch) | |
tree | 947174858fcdf60492112022ce9d87aff69d1ffd /gdb/cp-namespace.c | |
parent | 6c00f721c834e2c622eb995a58f02900b6d98574 (diff) | |
download | binutils-f135fe728e2d0a6168a8445a50a6d63547c4db2f.zip binutils-f135fe728e2d0a6168a8445a50a6d63547c4db2f.tar.gz binutils-f135fe728e2d0a6168a8445a50a6d63547c4db2f.tar.bz2 |
gdb: remove BLOCK_SUPERBLOCK macro
Replace with equivalent methods.
Change-Id: I334a319909a50b5cc5570a45c38c70e10dc00630
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index d84486e..e734eff 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -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 {}; |