]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove call to dwarf2_per_objfile::adjust from read_call_site_scope
authorTom Tromey <tom@tromey.com>
Mon, 1 Apr 2024 23:05:18 +0000 (17:05 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 4 May 2024 15:30:30 +0000 (09:30 -0600)
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

index 76330d7b78484dfcda6142d558d2c672b71b82ae..7caacd25474055569e511d1f18d1248c7b9835f0 100644 (file)
@@ -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