Code cleanup: Add objfile_name accessor
[deliverable/binutils-gdb.git] / gdb / solib-som.c
index 457e464d72cc8e8e73af8d39e1cffe491ee22b6b..98b32db40f10efaa76d001f9754fec4ee1a9f0c2 100644 (file)
@@ -569,7 +569,7 @@ link_map_start (void)
 static int
 match_main (const char *name)
 {
-  return strcmp (name, symfile_objfile->name) == 0;
+  return strcmp (name, objfile_name (symfile_objfile)) == 0;
 }
 
 static struct so_list *
@@ -839,7 +839,7 @@ som_solib_section_offsets (struct objfile *objfile,
     {
       /* Oh what a pain!  We need the offsets before so_list->objfile
          is valid.  The BFDs will never match.  Make a best guess.  */
-      if (strstr (objfile->name, so_list->so_name))
+      if (strstr (objfile_name (objfile), so_list->so_name))
        {
          asection *private_section;
          struct obj_section *sect;
This page took 0.044938 seconds and 4 git commands to generate.