#include <stddef.h>
#include <time.h>
#include "safe-ctype.h"
+#include "libiberty.h"
#include "bfd.h"
#include "objdump.h"
#include "bucomm.h"
buf = xmalloc (len);
if (bfd_seek (abfd, off, SEEK_SET) == 0
- && bfd_bread (buf, len, abfd) == len)
+ && bfd_read (buf, len, abfd) == len)
dump (abfd, buf, len, off);
else
return false;
char *buf = xmalloc (flavour->size);
if (bfd_seek (abfd, flavour->offset, SEEK_SET) == 0
- && bfd_bread (buf, flavour->size, abfd) == flavour->size)
+ && bfd_read (buf, flavour->size, abfd) == flavour->size)
(*bed->_bfd_mach_o_print_thread)(abfd, flavour, stdout, buf);
free (buf);
unsigned int off;
if (bfd_seek (abfd, cmd->dataoff, SEEK_SET) != 0
- || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize)
+ || bfd_read (buf, cmd->datasize, abfd) != cmd->datasize)
{
non_fatal (_("cannot read code signature data"));
free (buf);
bfd_vma addr = 0;
if (bfd_seek (abfd, cmd->dataoff, SEEK_SET) != 0
- || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize)
+ || bfd_read (buf, cmd->datasize, abfd) != cmd->datasize)
{
non_fatal (_("cannot read segment split info"));
free (buf);
bfd_vma addr;
if (bfd_seek (abfd, cmd->dataoff, SEEK_SET) != 0
- || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize)
+ || bfd_read (buf, cmd->datasize, abfd) != cmd->datasize)
{
non_fatal (_("cannot read function starts"));
free (buf);
buf = xmalloc (cmd->datasize);
if (bfd_seek (abfd, cmd->dataoff, SEEK_SET) != 0
- || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize)
+ || bfd_read (buf, cmd->datasize, abfd) != cmd->datasize)
{
non_fatal (_("cannot read data_in_code"));
free (buf);
buf = xmalloc (sz);
if (bfd_seek (abfd, cmd->offset, SEEK_SET) != 0
- || bfd_bread (buf, sz, abfd) != sz)
+ || bfd_read (buf, sz, abfd) != sz)
{
non_fatal (_("cannot read twolevel hints"));
free (buf);
tools = xmalloc (tools_len);
if (bfd_seek (abfd, tools_offset, SEEK_SET) != 0
- || bfd_bread (tools, tools_len, abfd) != tools_len)
+ || bfd_read (tools, tools_len, abfd) != tools_len)
{
non_fatal (_("cannot read build tools"));
free (tools);