aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 22:31:55 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:19 -0500
commitc1e35bc9c6b9d7efe0f720394b1febe71bbc728b (patch)
tree8b0481da88602b1f00848f161d7493612ca179c8 /gdb/objfiles.c
parentaf39c5c8749757724a0f62dcb51be59cf3ecc678 (diff)
downloadbinutils-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.zip
binutils-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.tar.gz
binutils-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.tar.bz2
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
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index f363cb4..7e1ec6c 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -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]);