aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2024-04-01 17:06:10 -0600
committerTom Tromey <tom@tromey.com>2024-05-04 09:30:31 -0600
commitb42d685452f7b797dd87ff2856e1959a975e902a (patch)
tree839105f1adf1d4786838896d0a6196057d1ba879 /gdb
parent12fddc10c3ca745f98bd297ec72732adddb151c0 (diff)
downloadbinutils-b42d685452f7b797dd87ff2856e1959a975e902a.zip
binutils-b42d685452f7b797dd87ff2856e1959a975e902a.tar.gz
binutils-b42d685452f7b797dd87ff2856e1959a975e902a.tar.bz2
Remove dwarf2_per_objfile::adjust
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/dwarf2/read.c11
-rw-r--r--gdb/dwarf2/read.h4
2 files changed, 0 insertions, 15 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 68e093c..049ee4d 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -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)
{
diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h
index 73def88..7ab6152 100644
--- a/gdb/dwarf2/read.h
+++ b/gdb/dwarf2/read.h
@@ -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. */