diff options
author | Tom Tromey <tom@tromey.com> | 2024-04-01 17:03:45 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-05-04 09:30:30 -0600 |
commit | 12fddc10c3ca745f98bd297ec72732adddb151c0 (patch) | |
tree | f2a0406f046cf3b922f6713b0e26cb039b8682dc | |
parent | 6142f7cd83643ec4e086d926a135844a912c3053 (diff) | |
download | binutils-12fddc10c3ca745f98bd297ec72732adddb151c0.zip binutils-12fddc10c3ca745f98bd297ec72732adddb151c0.tar.gz binutils-12fddc10c3ca745f98bd297ec72732adddb151c0.tar.bz2 |
Remove call to dwarf2_per_objfile::adjust from read_attribute_value
Currently, read_attribute_value calls dwarf2_per_objfile::adjust on
any address. This seems wrong, because the address may not even be in
the text section.
Luckily, this call is also not needed, because read_func_scope calls
'relocate', which does the same work.
-rw-r--r-- | gdb/dwarf2/read.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 7caacd2..68e093c 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -17010,7 +17010,6 @@ read_attribute_value (const struct die_reader_specs *reader, { unrelocated_addr addr = cu_header->read_address (abfd, info_ptr, &bytes_read); - addr = per_objfile->adjust (addr); attr->set_address (addr); info_ptr += bytes_read; } |