diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 22:21:21 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | 6dd5a4bd44b7b7d2daf195dd5e48faeaf7231c17 (patch) | |
tree | c62d9b1cebef0e187266649bb031db7c62875a78 /gdb/objfiles.c | |
parent | 3fe38936f6c0fe5d724806a1646fb7b67638b420 (diff) | |
download | gdb-6dd5a4bd44b7b7d2daf195dd5e48faeaf7231c17.zip gdb-6dd5a4bd44b7b7d2daf195dd5e48faeaf7231c17.tar.gz gdb-6dd5a4bd44b7b7d2daf195dd5e48faeaf7231c17.tar.bz2 |
gdb: remove BLOCK_RANGE_{START,END} macros
Replace with equivalent methods on blockrange.
Change-Id: I20fd8f624e0129782c36768291891e7582d77c74
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index a709d94..9c7a30d 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -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 |