]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr.
authorMark Mitchell <mark@codesourcery.com>
Mon, 13 Jun 2005 18:43:57 +0000 (18:43 +0000)
committerMark Mitchell <mark@codesourcery.com>
Mon, 13 Jun 2005 18:43:57 +0000 (18:43 +0000)
* 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.

gdb/ChangeLog
gdb/corelow.c
gdb/exec.c
gdb/solib-frv.c
gdb/solib-svr4.c
gdb/solib.c
gdb/symfile.c

index 03d511504aac7becac4cb318fbf9ccef82ca6e62..3c84e6cc3fef11e9aef50209d68911ab19ce6ac2 100644 (file)
@@ -1,3 +1,12 @@
+2005-06-13  Mark Mitchell  <mark@codesourcery.com>
+
+       * 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.
+
 2005-03-25  Mark Kettenis  <kettenis@gnu.org>
 
        * dwarf2-frame.h: Update copyrigh year.
index a78f71a147eab4f844e8fba3b902c2dc0c814539..4d2e5dd016672a41147ec24a87968fead7917eb0 100644 (file)
@@ -315,7 +315,9 @@ core_open (char *filename, int from_tty)
   if (scratch_chan < 0)
     perror_with_name (filename);
 
-  temp_bfd = bfd_fdopenr (filename, gnutarget, scratch_chan);
+  temp_bfd = bfd_fopen (filename, gnutarget, 
+                       write_files ? FOPEN_RUB : FOPEN_RB,
+                       scratch_chan);
   if (temp_bfd == NULL)
     perror_with_name (filename);
 
index 6bf524a78104ce8f31b09effab9c539eb61e3d13..00f0e72c4146634b55fad724abb448c3dea76dc0 100644 (file)
@@ -214,7 +214,9 @@ exec_file_attach (char *filename, int from_tty)
 #endif
       if (scratch_chan < 0)
        perror_with_name (filename);
-      exec_bfd = bfd_fdopenr (scratch_pathname, gnutarget, scratch_chan);
+      exec_bfd = bfd_fopen (scratch_pathname, gnutarget,
+                           write_files ? FOPEN_RUB : FOPEN_RB,
+                           scratch_chan);
 
       if (!exec_bfd)
        error (_("\"%s\": could not open as an executable file: %s"),
index 3fb542445fbe21ed327c6a84ebbf76faa2f56b88..d6a703560c090fa06c0f72c0ae5cd50249116029 100644 (file)
@@ -638,7 +638,7 @@ enable_break2 (void)
 
       tmp_fd  = solib_open (buf, &tmp_pathname);
       if (tmp_fd >= 0)
-       tmp_bfd = bfd_fdopenr (tmp_pathname, gnutarget, tmp_fd);
+       tmp_bfd = bfd_fopen (tmp_pathname, gnutarget, FOPEN_RB, tmp_fd);
 
       if (tmp_bfd == NULL)
        {
index 6106d9e4d6ea381099a64a07964e3265545b09fe..6692c950c580cbe1a17b852f72ed1634a413c7f4 100644 (file)
@@ -893,7 +893,7 @@ enable_break (void)
 
       tmp_fd  = solib_open (buf, &tmp_pathname);
       if (tmp_fd >= 0)
-       tmp_bfd = bfd_fdopenr (tmp_pathname, gnutarget, tmp_fd);
+       tmp_bfd = bfd_fopen (tmp_pathname, gnutarget, FOPEN_RB, tmp_fd);
 
       if (tmp_bfd == NULL)
        goto bkpt_at_symbol;
index dd5af4d7bf9421faae637c3275f4b741a9beec03..ef89db28d6188c4240235ca7379a7898e061fa52 100644 (file)
@@ -253,7 +253,7 @@ solib_map_sections (void *arg)
     }
 
   /* Leave scratch_pathname allocated.  abfd->name will point to it.  */
-  abfd = bfd_fdopenr (scratch_pathname, gnutarget, scratch_chan);
+  abfd = bfd_fopen (scratch_pathname, gnutarget, FOPEN_RB, scratch_chan);
   if (!abfd)
     {
       close (scratch_chan);
index 15d577eca55894ac4a6f9bf59bce9c8e11a88dd1..6bf7b2a4ac7f07179714ffa97bcdc2f274aaa941 100644 (file)
@@ -1284,7 +1284,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);