gdb: remove BLOCK_ENTRY_PC macro

Replace with equivalent method.

Change-Id: I0e033095e7358799930775e61028b48246971a7d
This commit is contained in:
Simon Marchi 2022-02-06 22:41:58 -05:00 committed by Simon Marchi
parent 086d03c91e
commit 6395b62847
17 changed files with 56 additions and 51 deletions

View file

@ -487,10 +487,10 @@ get_expr_block_and_pc (CORE_ADDR *pc)
block = BLOCKVECTOR_BLOCK (cursal.symtab->compunit ()->blockvector (),
STATIC_BLOCK);
if (block != NULL)
*pc = BLOCK_ENTRY_PC (block);
*pc = block->entry_pc ();
}
else
*pc = BLOCK_ENTRY_PC (block);
*pc = block->entry_pc ();
return block;
}