[4/5] Remove call to dwarf2_per_objfile::adjust from read_attribute_value
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
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.
---
gdb/dwarf2/read.c | 1 -
1 file changed, 1 deletion(-)
@@ -17024,7 +17024,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;
}