aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-aix.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-aix.c')
-rw-r--r--gdb/solib-aix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c
index 29574f2..8fc516a 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -765,7 +765,7 @@ solib_aix_get_toc_value (CORE_ADDR pc)
if (data_osect == NULL)
error (_("unable to find TOC entry for pc %s "
"(%s has no data section)"),
- core_addr_to_string (pc), pc_osect->objfile->name);
+ core_addr_to_string (pc), objfile_name (pc_osect->objfile));
result = (obj_section_addr (data_osect)
+ xcoff_get_toc_offset (pc_osect->objfile));