aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-09-20 03:03:40 +0000
committerAlan Modra <amodra@gmail.com>2001-09-20 03:03:40 +0000
commit3a42e9d0622736d6ad84c37a2d4f4f54a0c30469 (patch)
tree46b6e47111b8b25da564e47bbe2cac0b0d8bdaa3 /gdb/dbxread.c
parent6bac1f11325a9debaf36f471dec1f93b839001b7 (diff)
downloadgdb-3a42e9d0622736d6ad84c37a2d4f4f54a0c30469.zip
gdb-3a42e9d0622736d6ad84c37a2d4f4f54a0c30469.tar.gz
gdb-3a42e9d0622736d6ad84c37a2d4f4f54a0c30469.tar.bz2
* coffread.c: Replace all occurrences of bfd_read with bfd_bread.
* dbxread.c: Likewise. * dwarf2read.c: Likewise. * dwarfread.c: Likewise. * somread.c: Likewise. * ultra3-nat.c: Likewise. * xcoffread.c: Likewise.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 04acd4e..ca688d8 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -700,7 +700,7 @@ dbx_symfile_init (struct objfile *objfile)
perror_with_name (name);
memset ((PTR) size_temp, 0, sizeof (size_temp));
- val = bfd_read ((PTR) size_temp, sizeof (size_temp), 1, sym_bfd);
+ val = bfd_bread ((PTR) size_temp, sizeof (size_temp), sym_bfd);
if (val < 0)
{
perror_with_name (name);
@@ -739,8 +739,9 @@ dbx_symfile_init (struct objfile *objfile)
val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, SEEK_SET);
if (val < 0)
perror_with_name (name);
- val = bfd_read (DBX_STRINGTAB (objfile), DBX_STRINGTAB_SIZE (objfile), 1,
- sym_bfd);
+ val = bfd_bread (DBX_STRINGTAB (objfile),
+ DBX_STRINGTAB_SIZE (objfile),
+ sym_bfd);
if (val != DBX_STRINGTAB_SIZE (objfile))
perror_with_name (name);
}
@@ -931,7 +932,7 @@ fill_symbuf (bfd *sym_bfd)
count = sizeof (symbuf);
}
- nbytes = bfd_read ((PTR) symbuf, count, 1, sym_bfd);
+ nbytes = bfd_bread ((PTR) symbuf, count, sym_bfd);
if (nbytes < 0)
perror_with_name (bfd_get_filename (sym_bfd));
else if (nbytes == 0)
@@ -2501,7 +2502,7 @@ coffstab_build_psymtabs (struct objfile *objfile, int mainline,
val = bfd_seek (sym_bfd, stabstroffset, SEEK_SET);
if (val < 0)
perror_with_name (name);
- val = bfd_read (DBX_STRINGTAB (objfile), stabstrsize, 1, sym_bfd);
+ val = bfd_bread (DBX_STRINGTAB (objfile), stabstrsize, sym_bfd);
if (val != stabstrsize)
perror_with_name (name);
@@ -2597,7 +2598,7 @@ elfstab_build_psymtabs (struct objfile *objfile, int mainline,
val = bfd_seek (sym_bfd, stabstroffset, SEEK_SET);
if (val < 0)
perror_with_name (name);
- val = bfd_read (DBX_STRINGTAB (objfile), stabstrsize, 1, sym_bfd);
+ val = bfd_bread (DBX_STRINGTAB (objfile), stabstrsize, sym_bfd);
if (val != stabstrsize)
perror_with_name (name);