Code cleanup: Add objfile_name accessor
[deliverable/binutils-gdb.git] / gdb / solib-aix.c
index 29574f273d4110cf9136d223a44bf7650b8446e9..8fc516ab4d7d4869fc3faf75350ffd999dade36b 100644 (file)
@@ -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));
This page took 0.028926 seconds and 4 git commands to generate.