This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] s/basename/lbasename/ in objfile.c
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] s/basename/lbasename/ in objfile.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 05 Jul 2001 17:29:36 -0400
Just FYI,
I don't know how I missed it last time.
An obvious fix.
Andrew
2001-07-05 Andrew Cagney <ac131313@redhat.com>
* objfiles.c (open_mapped_file): Use lbasename instead of
basename.
Index: objfiles.c
===================================================================
RCS file: /cvs/src/src/gdb/objfiles.c,v
retrieving revision 1.15
diff -p -r1.15 objfiles.c
*** objfiles.c 2001/03/06 08:21:11 1.15
--- objfiles.c 2001/07/05 21:25:42
*************** open_mapped_file (char *filename, long m
*** 854,860 ****
/* 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);
if ((fd = open_existing_mapped_file (symsfilename, mtime, flags)) < 0)
{
xfree (symsfilename);
--- 854,860 ----
/* First try to open an existing file in the current directory, and
then try the directory where the symbol file is located. */
! symsfilename = concat ("./", lbasename (filename), ".syms", (char *) NULL);
if ((fd = open_existing_mapped_file (symsfilename, mtime, flags)) < 0)
{
xfree (symsfilename);
*************** open_mapped_file (char *filename, long m
*** 874,880 ****
if ((fd < 0) && (flags & OBJF_MAPPED))
{
xfree (symsfilename);
! symsfilename = concat ("./", basename (filename), ".syms",
(char *) NULL);
if ((fd = open (symsfilename, O_RDWR | O_CREAT | O_TRUNC, 0666)) < 0)
{
--- 874,880 ----
if ((fd < 0) && (flags & OBJF_MAPPED))
{
xfree (symsfilename);
! symsfilename = concat ("./", lbasename (filename), ".syms",
(char *) NULL);
if ((fd = open (symsfilename, O_RDWR | O_CREAT | O_TRUNC, 0666)) < 0)
{