gdb: remove COMPUNIT_OBJFILE macro

Remove the macro, update all users to use the getter directly.

Change-Id: I3f0fd6f4455d1c4ebd5da73b561eb18a979ef1f6
This commit is contained in:
Simon Marchi
2021-11-19 13:15:24 -05:00
committed by Simon Marchi
parent f1f58f102e
commit 9821f3fa56
7 changed files with 13 additions and 14 deletions

View File

@ -51,7 +51,7 @@ block_objfile (const struct block *block)
return symbol_objfile (BLOCK_FUNCTION (block));
global_block = (struct global_block *) block_global_block (block);
return COMPUNIT_OBJFILE (global_block->compunit_symtab);
return global_block->compunit_symtab->objfile ();
}
/* See block. */