mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
gdb: remove COMPUNIT_BLOCK_LINE_SECTION macro, add getter/setter
Add a getter and a setter for a compunit_symtab's block line section. Remove the corresponding macro and adjust all callers. Change-Id: I3eb1a323388ad55eae8bfa45f5bc4a08dc3df455
This commit is contained in:

committed by
Simon Marchi

parent
af39c5c874
commit
c1e35bc9c6
@ -660,7 +660,7 @@ objfile_relocate1 (struct objfile *objfile,
|
||||
if (l)
|
||||
{
|
||||
for (int i = 0; i < l->nitems; ++i)
|
||||
l->item[i].pc += delta[COMPUNIT_BLOCK_LINE_SECTION (cust)];
|
||||
l->item[i].pc += delta[cust->block_line_section ()];
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -668,7 +668,7 @@ objfile_relocate1 (struct objfile *objfile,
|
||||
for (compunit_symtab *cust : objfile->compunits ())
|
||||
{
|
||||
const struct blockvector *bv = cust->blockvector ();
|
||||
int block_line_section = COMPUNIT_BLOCK_LINE_SECTION (cust);
|
||||
int block_line_section = cust->block_line_section ();
|
||||
|
||||
if (BLOCKVECTOR_MAP (bv))
|
||||
addrmap_relocate (BLOCKVECTOR_MAP (bv), delta[block_line_section]);
|
||||
|
Reference in New Issue
Block a user