diff options
author | Tom Tromey <tom@tromey.com> | 2024-04-01 17:00:21 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-05-04 09:30:30 -0600 |
commit | 91fc201ed4a822f5fa86d1075806470c327bc455 (patch) | |
tree | a9f64045fb2bfc69ef1ef33ce01feeb19e2d8b97 /gdb/dwarf2 | |
parent | c7a1fe2286e6f68c8bd0cef12feca4ade2451a25 (diff) | |
download | gdb-91fc201ed4a822f5fa86d1075806470c327bc455.zip gdb-91fc201ed4a822f5fa86d1075806470c327bc455.tar.gz gdb-91fc201ed4a822f5fa86d1075806470c327bc455.tar.bz2 |
Remove call to dwarf2_per_objfile::adjust from ranges readers
dwarf2_per_objfile::adjust applies gdbarch_adjust_dwarf2_addr to an
address, leaving the result unrelocated. However, this adjustment is
only needed for text-section symbols -- it isn't needed for any sort
of address mapping. Therefore, these calls can be removed from
read_addrmap_from_aranges and create_addrmap_from_gdb_index.
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r-- | gdb/dwarf2/aranges.c | 2 | ||||
-rw-r--r-- | gdb/dwarf2/read-gdb-index.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/gdb/dwarf2/aranges.c b/gdb/dwarf2/aranges.c index d577db6..0d1dc11 100644 --- a/gdb/dwarf2/aranges.c +++ b/gdb/dwarf2/aranges.c @@ -190,8 +190,6 @@ read_addrmap_from_aranges (dwarf2_per_objfile *per_objfile, continue; } ULONGEST end = start + length; - start = (ULONGEST) per_objfile->adjust ((unrelocated_addr) start); - end = (ULONGEST) per_objfile->adjust ((unrelocated_addr) end); mutable_map->set_empty (start, end - 1, per_cu); } diff --git a/gdb/dwarf2/read-gdb-index.c b/gdb/dwarf2/read-gdb-index.c index e743ce1..9410924 100644 --- a/gdb/dwarf2/read-gdb-index.c +++ b/gdb/dwarf2/read-gdb-index.c @@ -567,8 +567,6 @@ create_addrmap_from_gdb_index (dwarf2_per_objfile *per_objfile, continue; } - lo = (ULONGEST) per_objfile->adjust ((unrelocated_addr) lo); - hi = (ULONGEST) per_objfile->adjust ((unrelocated_addr) hi); mutable_map.set_empty (lo, hi - 1, per_bfd->get_cu (cu_index)); } |