[3/5] Remove call to dwarf2_per_objfile::adjust from read_call_site_scope
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
read_call_site_scope does not need to call 'adjust', because in
general the call site is not a symbol address, but rather just the
address of some particular call.
---
gdb/dwarf2/read.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
@@ -10242,7 +10242,7 @@ read_call_site_scope (struct die_info *die, struct dwarf2_cu *cu)
sect_offset_str (die->sect_off), objfile_name (objfile));
return;
}
- unrelocated_addr pc = per_objfile->adjust (attr->as_address ());
+ unrelocated_addr pc = attr->as_address ();
if (cu->call_site_htab == NULL)
cu->call_site_htab = htab_create_alloc_ex (16, call_site::hash,
@@ -10417,10 +10417,7 @@ read_call_site_scope (struct die_info *die, struct dwarf2_cu *cu)
"low pc, for referencing DIE %s [in module %s]"),
sect_offset_str (die->sect_off), objfile_name (objfile));
else
- {
- lowpc = per_objfile->adjust (lowpc);
- call_site->target.set_loc_physaddr (lowpc);
- }
+ call_site->target.set_loc_physaddr (lowpc);
}
}
else