mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
gdb: remove BLOCK_RANGES macro
Replace with an equivalent method on struct block. Change-Id: I6dcf13e9464ba8a08ade85c89e7329c300fd6c2a
This commit is contained in:
committed by
Simon Marchi
parent
6dd5a4bd44
commit
f5cb8afdd2
@@ -680,13 +680,11 @@ objfile_relocate1 (struct objfile *objfile,
|
||||
b->set_start (b->start () + delta[block_line_section]);
|
||||
b->set_end (b->end () + delta[block_line_section]);
|
||||
|
||||
if (BLOCK_RANGES (b) != nullptr)
|
||||
for (int j = 0; j < BLOCK_NRANGES (b); j++)
|
||||
{
|
||||
blockrange &r = BLOCK_RANGE (b)[j];
|
||||
r.set_start (r.start () + delta[block_line_section]);
|
||||
r.set_end (r.end () + delta[block_line_section]);
|
||||
}
|
||||
for (blockrange &r : b->ranges ())
|
||||
{
|
||||
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
|
||||
symbols in included symtabs. */
|
||||
|
||||
Reference in New Issue
Block a user