* cli/cli-cmds.c (shell_escape): Use lbasename.
[deliverable/binutils-gdb.git] / gdb / nto-tdep.c
index 5858dc26eceb26d57017a812de1c0bd0716a2baa..23bbd3122b01fcbb14cb2859f69479b8a4532367 100644 (file)
@@ -127,13 +127,7 @@ nto_find_and_open_solib (char *solib, unsigned o_flags, char **temp_pathname)
   sprintf (buf, PATH_FMT, arch_path, arch_path, arch_path, arch_path,
           arch_path);
 
-  /* Don't assume basename() isn't destructive.  */
-  base = strrchr (solib, '/');
-  if (!base)
-    base = solib;
-  else
-    base++;                    /* Skip over '/'.  */
-
+  base = lbasename (solib);
   ret = openp (buf, 1, base, o_flags, temp_pathname);
   if (ret < 0 && base != solib)
     {
This page took 0.025207 seconds and 4 git commands to generate.