mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
gdb: remove BLOCKVECTOR_BLOCK and BLOCKVECTOR_NBLOCKS macros
Replace with calls to blockvector::blocks, and the appropriate method call on the returned array_view. Change-Id: I04d1f39603e4d4c21c96822421431d9a029d8ddd
This commit is contained in:

committed by
Simon Marchi

parent
6395b62847
commit
63d609debb
@ -463,10 +463,11 @@ parse_exp_in_context (const char **stringptr, CORE_ADDR pc,
|
||||
if (!expression_context_block)
|
||||
{
|
||||
struct symtab_and_line cursal = get_current_source_symtab_and_line ();
|
||||
|
||||
if (cursal.symtab)
|
||||
expression_context_block
|
||||
= BLOCKVECTOR_BLOCK (cursal.symtab->compunit ()->blockvector (),
|
||||
STATIC_BLOCK);
|
||||
= cursal.symtab->compunit ()->blockvector ()->static_block ();
|
||||
|
||||
if (expression_context_block)
|
||||
expression_context_pc = expression_context_block->entry_pc ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user