From: Andrew Cagney Date: Thu, 5 Jul 2001 21:32:39 +0000 (+0000) Subject: s/basename/lbasename/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdda63b0c5cf6785c3c6583c12bd2b111f7993b6;p=binutils-gdb.git s/basename/lbasename/ --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c8fc8f38222..20f1d75de63 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-07-05 Andrew Cagney + + * objfiles.c (open_mapped_file): Use lbasename instead of + basename. + 2001-07-05 Jim Blandy * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs, diff --git a/gdb/objfiles.c b/gdb/objfiles.c index e86270964e0..85762c3b4df 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -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) {