X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Frs6000-core.c;h=3fa0975dc31b329a93f9ec19f5ee4e3b865a56b5;hb=6913c89ac7bc62da99c5bb292de820098a2bacd2;hp=a61f25caa22c41f602d3fe911dd49fab03a221eb;hpb=2ee563b53258d390d7446e90a67f465d504ae44c;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/rs6000-core.c b/bfd/rs6000-core.c index a61f25caa2..3fa0975dc3 100644 --- a/bfd/rs6000-core.c +++ b/bfd/rs6000-core.c @@ -253,19 +253,19 @@ typedef union { /* Try to read into CORE the header from the core file associated with ABFD. Return success. */ -static boolean +static bfd_boolean read_hdr (bfd *abfd, CoreHdr *core) { bfd_size_type size; if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0) - return false; + return FALSE; /* Read the leading portion that old and new core dump structures have in common. */ size = CORE_COMMONSZ; if (bfd_bread (core, size, abfd) != size) - return false; + return FALSE; /* Read the trailing portion of the structure. */ if (CORE_NEW (*core)) @@ -630,9 +630,9 @@ rs6000coff_core_p (abfd) return NULL; } -/* Return `true' if given core is from the given executable. */ +/* Return `TRUE' if given core is from the given executable. */ -boolean +bfd_boolean rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd) bfd *core_bfd; bfd *exec_bfd; @@ -642,11 +642,11 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd) char *path, *s; size_t alloc; const char *str1, *str2; - boolean ret; + bfd_boolean ret; file_ptr c_loader; if (!read_hdr (core_bfd, &core)) - return false; + return FALSE; if (CORE_NEW (core)) c_loader = CNEW_LOADER (core.new); @@ -659,12 +659,12 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd) size = (int) ((LdInfo *) 0)->l32.ldinfo_filename; if (bfd_seek (core_bfd, c_loader + size, SEEK_SET) != 0) - return false; + return FALSE; alloc = 100; path = bfd_malloc ((bfd_size_type) alloc); if (path == NULL) - return false; + return FALSE; s = path; while (1) @@ -672,7 +672,7 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd) if (bfd_bread (s, (bfd_size_type) 1, core_bfd) != 1) { free (path); - return false; + return FALSE; } if (*s == '\0') break; @@ -686,7 +686,7 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd) if (n == NULL) { free (path); - return false; + return FALSE; } s = n + (path - s); path = n; @@ -701,9 +701,9 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd) str2 = str2 != NULL ? str2 + 1 : exec_bfd->filename; if (strcmp (str1, str2) == 0) - ret = true; + ret = TRUE; else - ret = false; + ret = FALSE; free (path);