diff options
author | Alan Modra <amodra@gmail.com> | 2001-09-20 03:03:40 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-09-20 03:03:40 +0000 |
commit | 3a42e9d0622736d6ad84c37a2d4f4f54a0c30469 (patch) | |
tree | 46b6e47111b8b25da564e47bbe2cac0b0d8bdaa3 /gdb/dwarfread.c | |
parent | 6bac1f11325a9debaf36f471dec1f93b839001b7 (diff) | |
download | gdb-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/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index d6258b3..a78b199 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -695,7 +695,7 @@ dwarf_build_psymtabs (struct objfile *objfile, int mainline, file_ptr dbfoff, dbbase = xmalloc (dbsize); dbroff = 0; if ((bfd_seek (abfd, dbfoff, SEEK_SET) != 0) || - (bfd_read (dbbase, dbsize, 1, abfd) != dbsize)) + (bfd_bread (dbbase, dbsize, abfd) != dbsize)) { xfree (dbbase); error ("can't read DWARF data from '%s'", bfd_get_filename (abfd)); @@ -2269,7 +2269,7 @@ read_ofile_symtab (struct partial_symtab *pst) base_section_offsets = pst->section_offsets; baseaddr = ANOFFSET (pst->section_offsets, 0); if (bfd_seek (abfd, foffset, SEEK_SET) || - (bfd_read (dbbase, dbsize, 1, abfd) != dbsize)) + (bfd_bread (dbbase, dbsize, abfd) != dbsize)) { xfree (dbbase); error ("can't read DWARF data"); @@ -2285,8 +2285,8 @@ read_ofile_symtab (struct partial_symtab *pst) if (LNFOFF (pst)) { if (bfd_seek (abfd, LNFOFF (pst), SEEK_SET) || - (bfd_read ((PTR) lnsizedata, sizeof (lnsizedata), 1, abfd) != - sizeof (lnsizedata))) + (bfd_bread ((PTR) lnsizedata, sizeof (lnsizedata), abfd) + != sizeof (lnsizedata))) { error ("can't read DWARF line number table size"); } @@ -2294,7 +2294,7 @@ read_ofile_symtab (struct partial_symtab *pst) GET_UNSIGNED, pst->objfile); lnbase = xmalloc (lnsize); if (bfd_seek (abfd, LNFOFF (pst), SEEK_SET) || - (bfd_read (lnbase, lnsize, 1, abfd) != lnsize)) + (bfd_bread (lnbase, lnsize, abfd) != lnsize)) { xfree (lnbase); error ("can't read DWARF line numbers"); |