* corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr.

* exec.c (exec_file_attach): Likewise.
	* solib-frv.c (enable_break2): Likewise.
	* solib-svr4.c (enable_break): Likewise.
	* solib.c (solib_map_sections): Likewise.
	* symfile.c (symfile_bfd_open): Likewise.
This commit is contained in:
Mark Mitchell
2005-06-13 18:39:11 +00:00
parent 26585198a1
commit 9f76c2cd17
7 changed files with 19 additions and 6 deletions

View File

@ -1372,7 +1372,7 @@ symfile_bfd_open (char *name)
name = absolute_name; /* Keep 2nd malloc'd copy in bfd */
/* It'll be freed in free_objfile(). */
sym_bfd = bfd_fdopenr (name, gnutarget, desc);
sym_bfd = bfd_fopen (name, gnutarget, FOPEN_RB, desc);
if (!sym_bfd)
{
close (desc);