Use bfd_get_filename throughout bfd
[deliverable/binutils-gdb.git] / bfd / rs6000-core.c
index 8e2dd06b464c9b199971bf75ee7d71b6a4042d1c..696e8fdd99105cb4b8222da76c4c19959bcc0279 100644 (file)
@@ -759,11 +759,11 @@ rs6000coff_core_file_matches_executable_p (bfd *core_bfd, bfd *exec_bfd)
     }
 
   str1 = strrchr (path, '/');
-  str2 = strrchr (exec_bfd->filename, '/');
+  str2 = strrchr (bfd_get_filename (exec_bfd), '/');
 
   /* step over character '/' */
   str1 = str1 != NULL ? str1 + 1 : path;
-  str2 = str2 != NULL ? str2 + 1 : exec_bfd->filename;
+  str2 = str2 != NULL ? str2 + 1 : bfd_get_filename (exec_bfd);
 
   if (strcmp (str1, str2) == 0)
     ret = TRUE;
This page took 0.029956 seconds and 4 git commands to generate.