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:
parent
af39c5c874
commit
c1e35bc9c6
6 changed files with 17 additions and 8 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue