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/jit.c | |
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/jit.c')
-rw-r--r-- | gdb/jit.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -620,7 +620,7 @@ finalize_symtab (struct gdb_symtab *stab, struct objfile *objfile) : allocate_block (&objfile->objfile_obstack)); BLOCK_MULTIDICT (new_block) = mdict_create_linear (&objfile->objfile_obstack, NULL); - BLOCK_SUPERBLOCK (new_block) = block_iter; + new_block->set_superblock (block_iter); block_iter = new_block; new_block->set_start (begin); @@ -640,14 +640,15 @@ finalize_symtab (struct gdb_symtab *stab, struct objfile *objfile) { /* If the plugin specifically mentioned a parent block, we use that. */ - BLOCK_SUPERBLOCK (gdb_block_iter.real_block) = - gdb_block_iter.parent->real_block; + gdb_block_iter.real_block->set_superblock + (gdb_block_iter.parent->real_block); + } else { /* And if not, we set a default parent block. */ - BLOCK_SUPERBLOCK (gdb_block_iter.real_block) = - BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK); + gdb_block_iter.real_block->set_superblock + (BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK)); } } } |