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/compile | |
parent | 6c00f721c834e2c622eb995a58f02900b6d98574 (diff) | |
download | gdb-f135fe728e2d0a6168a8445a50a6d63547c4db2f.zip gdb-f135fe728e2d0a6168a8445a50a6d63547c4db2f.tar.gz gdb-f135fe728e2d0a6168a8445a50a6d63547c4db2f.tar.bz2 |
gdb: remove BLOCK_SUPERBLOCK macro
Replace with equivalent methods.
Change-Id: I334a319909a50b5cc5570a45c38c70e10dc00630
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-c-symbols.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile-object-load.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c index 9e13d76..4c30ae9 100644 --- a/gdb/compile/compile-c-symbols.c +++ b/gdb/compile/compile-c-symbols.c @@ -647,7 +647,7 @@ generate_c_for_variable_locations (compile_instance *compiler, done. */ if (block->function () != NULL) break; - block = BLOCK_SUPERBLOCK (block); + block = block->superblock (); } return registers_used; diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index 89a4785..2835f2d 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -444,13 +444,13 @@ get_out_value_type (struct symbol *func_sym, struct objfile *objfile, while (function_block != BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK) && function_block != BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK)) { - function_block = BLOCK_SUPERBLOCK (function_block); + function_block = function_block->superblock (); function = function_block->function (); if (function != NULL) break; } if (function != NULL - && (BLOCK_SUPERBLOCK (function_block) + && (function_block->superblock () == BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK)) && symbol_matches_search_name (function, func_matcher)) break; |