]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/windows-tdep.c
Default gdb_bfd_open's fd parameter to -1
[thirdparty/binutils-gdb.git] / gdb / windows-tdep.c
index 086038af0d49817061dbd03f4141888c966a63f2..20a18e6b68398163daebcf4cb8b425a25abe3d9d 100644 (file)
@@ -537,7 +537,7 @@ windows_xfer_shared_library (const char* so_name, CORE_ADDR load_addr,
 
   if (!text_offset)
     {
-      gdb_bfd_ref_ptr dll (gdb_bfd_open (so_name, gnutarget, -1));
+      gdb_bfd_ref_ptr dll (gdb_bfd_open (so_name, gnutarget));
       /* The following calls are OK even if dll is NULL.
         The default value 0x1000 is returned by pe_text_section_offset
         in that case.  */