* gdbcore.h: New variable gnutarget.
[deliverable/binutils-gdb.git] / gdb / xcoffexec.c
index 65a57b59f9f3aa2343b0dd2b8ada03d4dfa5cde2..9ede8493ead3be01594616da8f84b92d091e3591 100644 (file)
@@ -147,7 +147,7 @@ char *filename;
        if (scratch_chan < 0)
          perror_with_name(filename);
 
-       exec_bfd = bfd_fdopenr(scratch_pathname, NULL, scratch_chan);
+       exec_bfd = bfd_fdopenr(scratch_pathname, gnutarget, scratch_chan);
        if (!exec_bfd)
          error("Could not open `%s' as an executable file: %s"
                      , scratch_pathname, bfd_errmsg(bfd_error));
@@ -426,9 +426,9 @@ add_vmap(ldi)
        if (ldi->ldinfo_fd < 0)
          /* Note that this opens it once for every member; a possible
             enhancement would be to only open it once for every object.  */
-         bfd = bfd_openr (objname, NULL);
+         bfd = bfd_openr (objname, gnutarget);
        else
-         bfd = bfd_fdopenr(objname, NULL, ldi->ldinfo_fd);
+         bfd = bfd_fdopenr(objname, gnutarget, ldi->ldinfo_fd);
        if (!bfd)
          error("Could not open `%s' as an executable file: %s",
                                        objname, bfd_errmsg(bfd_error));
This page took 0.022965 seconds and 4 git commands to generate.