[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Update invocations of bfd_read in aix5ppc-core.c.
From: |
Nick Clifton |
Subject: |
Update invocations of bfd_read in aix5ppc-core.c. |
Date: |
15 May 2002 14:45:54 +0100 |
Hi Guys,
I am applying the patch below to replace the invocations of the
deprecated bfd_read function in aix5ppc-core.c with its replacement
function bfd_bread.
Cheers
Nick
2002-05-15 Nick Clifton <address@hidden>
* aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
bfd_bread.
(xcoff64_core_file_matches_executable_p): Replace bfd_read
with bfd_bread.
Index: bfd/aix5ppc-core.c
===================================================================
RCS file: /cvs/src/src/bfd/aix5ppc-core.c,v
retrieving revision 1.2
diff -c -3 -p -w -r1.2 aix5ppc-core.c
*** bfd/aix5ppc-core.c 15 May 2002 00:18:54 -0000 1.2
--- bfd/aix5ppc-core.c 15 May 2002 13:43:27 -0000
*************** xcoff64_core_p (abfd)
*** 63,69 ****
goto xcoff64_core_p_error;
if (sizeof (struct core_dumpxx)
! != bfd_read (&core, sizeof (struct core_dumpxx), 1, abfd))
goto xcoff64_core_p_error;
if (bfd_stat (abfd, &statbuf) < 0)
--- 63,69 ----
goto xcoff64_core_p_error;
if (sizeof (struct core_dumpxx)
! != bfd_bread (&core, sizeof (struct core_dumpxx), abfd))
goto xcoff64_core_p_error;
if (bfd_stat (abfd, &statbuf) < 0)
*************** xcoff64_core_p (abfd)
*** 172,178 ****
return return_value;
if (sizeof (struct __ld_info64) !=
! bfd_read (&ldinfo, sizeof (struct __ld_info64), 1, abfd))
return return_value;
if (ldinfo.ldinfo_core)
--- 172,178 ----
return return_value;
if (sizeof (struct __ld_info64) !=
! bfd_bread (&ldinfo, sizeof (struct __ld_info64), abfd))
return return_value;
if (ldinfo.ldinfo_core)
*************** xcoff64_core_p (abfd)
*** 200,206 ****
for (i = 0; i < core.c_vmregions; i++)
if (sizeof (struct vm_infox) !=
! bfd_read (&vminfo, sizeof (struct vm_infox), 1, abfd))
return return_value;
if (vminfo.vminfo_offset)
--- 200,206 ----
for (i = 0; i < core.c_vmregions; i++)
if (sizeof (struct vm_infox) !=
! bfd_bread (&vminfo, sizeof (struct vm_infox), abfd))
return return_value;
if (vminfo.vminfo_offset)
*************** xcoff64_core_file_matches_executable_p (
*** 243,249 ****
return return_value;
if (sizeof (struct core_dumpxx) !=
! bfd_read (&core, sizeof (struct core_dumpxx), 1, core_bfd))
return return_value;
if (bfd_seek (core_bfd, core.c_loader, SEEK_SET) != 0)
--- 243,249 ----
return return_value;
if (sizeof (struct core_dumpxx) !=
! bfd_bread (&core, sizeof (struct core_dumpxx), core_bfd))
return return_value;
if (bfd_seek (core_bfd, core.c_loader, SEEK_SET) != 0)
*************** xcoff64_core_file_matches_executable_p (
*** 258,264 ****
while (1)
{
! if (bfd_read (s, 1, 1, core_bfd) != 1)
goto xcoff64_core_file_matches_executable_p_end_1;
if (*s == '\0')
--- 258,264 ----
while (1)
{
! if (bfd_bread (s, 1, core_bfd) != 1)
goto xcoff64_core_file_matches_executable_p_end_1;
if (*s == '\0')
- Update invocations of bfd_read in aix5ppc-core.c.,
Nick Clifton <=