gdb: remove BLOCK_RANGE_{START,END} macros

Replace with equivalent methods on blockrange.

Change-Id: I20fd8f624e0129782c36768291891e7582d77c74
This commit is contained in:
Simon Marchi
2022-02-06 22:21:21 -05:00
committed by Simon Marchi
parent 3fe38936f6
commit 6dd5a4bd44
4 changed files with 35 additions and 26 deletions

View File

@ -683,8 +683,9 @@ objfile_relocate1 (struct objfile *objfile,
if (BLOCK_RANGES (b) != nullptr)
for (int j = 0; j < BLOCK_NRANGES (b); j++)
{
BLOCK_RANGE_START (b, j) += delta[block_line_section];
BLOCK_RANGE_END (b, j) += delta[block_line_section];
blockrange &r = BLOCK_RANGE (b)[j];
r.set_start (r.start () + delta[block_line_section]);
r.set_end (r.end () + delta[block_line_section]);
}
/* We only want to iterate over the local symbols, not any