diff options
author | Tom Tromey <tom@tromey.com> | 2024-04-01 17:05:18 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-05-04 09:30:30 -0600 |
commit | 6142f7cd83643ec4e086d926a135844a912c3053 (patch) | |
tree | f0bc3760b9c0f03d6249257b0fa782106329b403 /gdb/dwarf2/read.c | |
parent | a5a401018905185d6b82395b2c40a15dcb229bc6 (diff) | |
download | binutils-6142f7cd83643ec4e086d926a135844a912c3053.zip binutils-6142f7cd83643ec4e086d926a135844a912c3053.tar.gz binutils-6142f7cd83643ec4e086d926a135844a912c3053.tar.bz2 |
Remove call to dwarf2_per_objfile::adjust from read_call_site_scope
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.
Diffstat (limited to 'gdb/dwarf2/read.c')
-rw-r--r-- | gdb/dwarf2/read.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 76330d7..7caacd2 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -10231,7 +10231,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, @@ -10406,10 +10406,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 |