]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove dwarf2_per_objfile::adjust
authorTom Tromey <tom@tromey.com>
Mon, 1 Apr 2024 23:06:10 +0000 (17:06 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 4 May 2024 15:30:31 +0000 (09:30 -0600)
All the calls to dwarf2_per_objfile::adjust have been removed, so we
can remove this function entirely.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31261

gdb/dwarf2/read.c
gdb/dwarf2/read.h

index 68e093c23004d69beb22c4c9cae3cf5840716ee3..049ee4d52ff203198da29fb0029da8c681d8b248 100644 (file)
@@ -1210,17 +1210,6 @@ dwarf2_invalid_attrib_class_complaint (const char *arg1, const char *arg2)
 
 /* See read.h.  */
 
-unrelocated_addr
-dwarf2_per_objfile::adjust (unrelocated_addr addr)
-{
-  CORE_ADDR baseaddr = objfile->text_section_offset ();
-  CORE_ADDR tem = (CORE_ADDR) addr + baseaddr;
-  tem = gdbarch_adjust_dwarf2_addr (objfile->arch (), tem);
-  return (unrelocated_addr) (tem - baseaddr);
-}
-
-/* See read.h.  */
-
 CORE_ADDR
 dwarf2_per_objfile::relocate (unrelocated_addr addr)
 {
index 73def88c4c08342222ed9048f95063d87d4bf9c5..7ab61528ab7f381385e8949708db7cfed03f8b26 100644 (file)
@@ -692,10 +692,6 @@ struct dwarf2_per_objfile
      any that are too old.  */
   void age_comp_units ();
 
-  /* Apply any needed adjustments to ADDR, returning an adjusted but
-     still unrelocated address.  */
-  unrelocated_addr adjust (unrelocated_addr addr);
-
   /* Apply any needed adjustments to ADDR and then relocate the
      address according to the objfile's section offsets, returning a
      relocated address.  */