From 226f9f4fadb087875ef98a0a55d614236c6241b3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 7 Aug 2023 14:40:35 +0930 Subject: Rename bfd_bread and bfd_bwrite These were renamed from bfd_read and bfd_write back in 2001 when they lost an unnecessary parameter. Rename them back, and get rid of a few casts that are only needed without prototyped functions (K&R C). --- gdb/dbxread.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gdb/dbxread.c') diff --git a/gdb/dbxread.c b/gdb/dbxread.c index a0a08b1..75bbd51 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -640,7 +640,7 @@ dbx_symfile_init (struct objfile *objfile) perror_with_name (name); memset (size_temp, 0, sizeof (size_temp)); - val = bfd_bread (size_temp, sizeof (size_temp), sym_bfd); + val = bfd_read (size_temp, sizeof (size_temp), sym_bfd); if (val < 0) { perror_with_name (name); @@ -679,9 +679,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_bread (DBX_STRINGTAB (objfile), - DBX_STRINGTAB_SIZE (objfile), - sym_bfd); + val = bfd_read (DBX_STRINGTAB (objfile), + DBX_STRINGTAB_SIZE (objfile), + sym_bfd); if (val != DBX_STRINGTAB_SIZE (objfile)) perror_with_name (name); } @@ -769,7 +769,7 @@ fill_symbuf (bfd *sym_bfd) else if (symbuf_sections == NULL) { count = sizeof (symbuf); - nbytes = bfd_bread (symbuf, count, sym_bfd); + nbytes = bfd_read (symbuf, count, sym_bfd); } else { @@ -787,7 +787,7 @@ fill_symbuf (bfd *sym_bfd) count = symbuf_left; if (count > sizeof (symbuf)) count = sizeof (symbuf); - nbytes = bfd_bread (symbuf, count, sym_bfd); + nbytes = bfd_read (symbuf, count, sym_bfd); } if (nbytes < 0) @@ -3015,7 +3015,7 @@ coffstab_build_psymtabs (struct objfile *objfile, val = bfd_seek (sym_bfd, stabstroffset, SEEK_SET); if (val < 0) perror_with_name (name); - val = bfd_bread (DBX_STRINGTAB (objfile), stabstrsize, sym_bfd); + val = bfd_read (DBX_STRINGTAB (objfile), stabstrsize, sym_bfd); if (val != stabstrsize) perror_with_name (name); @@ -3108,7 +3108,7 @@ elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect, val = bfd_seek (sym_bfd, stabstroffset, SEEK_SET); if (val < 0) perror_with_name (name); - val = bfd_bread (DBX_STRINGTAB (objfile), stabstrsize, sym_bfd); + val = bfd_read (DBX_STRINGTAB (objfile), stabstrsize, sym_bfd); if (val != stabstrsize) perror_with_name (name); -- cgit v1.1