s/basename/lbasename/
authorAndrew Cagney <cagney@redhat.com>
Thu, 5 Jul 2001 21:32:39 +0000 (21:32 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 5 Jul 2001 21:32:39 +0000 (21:32 +0000)
gdb/ChangeLog
gdb/objfiles.c

index c8fc8f3..20f1d75 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-05  Andrew Cagney  <ac131313@redhat.com>
+
+       * objfiles.c (open_mapped_file): Use lbasename instead of
+       basename.
+
 2001-07-05  Jim Blandy  <jimb@redhat.com>
 
        * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
index e862709..85762c3 100644 (file)
@@ -854,7 +854,7 @@ open_mapped_file (char *filename, long mtime, int flags)
   /* First try to open an existing file in the current directory, and
      then try the directory where the symbol file is located. */
 
-  symsfilename = concat ("./", basename (filename), ".syms", (char *) NULL);
+  symsfilename = concat ("./", lbasename (filename), ".syms", (char *) NULL);
   if ((fd = open_existing_mapped_file (symsfilename, mtime, flags)) < 0)
     {
       xfree (symsfilename);
@@ -874,7 +874,7 @@ open_mapped_file (char *filename, long mtime, int flags)
   if ((fd < 0) && (flags & OBJF_MAPPED))
     {
       xfree (symsfilename);
-      symsfilename = concat ("./", basename (filename), ".syms",
+      symsfilename = concat ("./", lbasename (filename), ".syms",
                             (char *) NULL);
       if ((fd = open (symsfilename, O_RDWR | O_CREAT | O_TRUNC, 0666)) < 0)
        {