Better handling of realpath() failure in windows_make_so() on Cygwin
[deliverable/binutils-gdb.git] / gdb / windows-nat.c
index 881240c6934751f1317a63f051a9b9f9ab85058b..613153bfac6fc48f70f4cf6065951a59467d3e1c 100644 (file)
@@ -820,7 +820,10 @@ windows_make_so (const char *name, LPVOID load_addr)
          free (rname);
        }
       else
-       error (_("dll path too long"));
+       {
+         warning (_("dll path for \"%s\" too long or inaccessible"), name);
+         strcpy (so->so_name, so->so_original_name);
+       }
     }
   /* Record cygwin1.dll .text start/end.  */
   p = strchr (so->so_name, '\0') - (sizeof ("/cygwin1.dll") - 1);
This page took 0.023862 seconds and 4 git commands to generate.