2005-09-13 Paul Gilliam <pgilliam@us.ibm.com>
[deliverable/binutils-gdb.git] / gdb / exec.c
index 60e3b36ae3cbc5bacc0559864d1f771222c45665..c9466133798dd6781c178be44f8c2668a7a36c17 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"),
@@ -262,10 +264,6 @@ exec_file_attach (char *filename, int from_tty)
                 scratch_pathname, bfd_errmsg (bfd_get_error ()));
        }
 
-#ifdef DEPRECATED_HPUX_TEXT_END
-      DEPRECATED_HPUX_TEXT_END (&exec_ops);
-#endif
-
       validate_files ();
 
       set_gdbarch_from_file (exec_bfd);
This page took 0.02435 seconds and 4 git commands to generate.