X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Frs6000-core.c;h=696e8fdd99105cb4b8222da76c4c19959bcc0279;hb=765cf5f623dbc2de8c8791bce9a29fcc3492436c;hp=8e2dd06b464c9b199971bf75ee7d71b6a4042d1c;hpb=0e1d094e96739f71f5041731a1769021421a71ca;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/rs6000-core.c b/bfd/rs6000-core.c index 8e2dd06b46..696e8fdd99 100644 --- a/bfd/rs6000-core.c +++ b/bfd/rs6000-core.c @@ -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;