This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
another DOS path fix (tab fix)
- To: binutils at sources dot redhat dot com
- Subject: another DOS path fix (tab fix)
- From: "Mark E." <snowball3 at bigfoot dot com>
- Date: Wed, 17 Jan 2001 15:32:27 -0500
[Sometimes my mail app. will change a tab to a space for some reason. Sorry about
that.]
Swatting another DOS-style path bug.
binutils/ChangeLog:
2001-01-06 Mark Elbrecht <snowball3@bigfoot.com>
* stabs.c: Include filenames.h
* stabs.c (parse_stab): Use IS_ABSOLUTE_PATH.
Index: src/binutils/stabs.c
===================================================================
RCS file: /cvs/src/src/binutils/stabs.c,v
retrieving revision 1.6
diff -c -p -r1.6 stabs.c
*** stabs.c 2000/07/10 14:51:04 1.6
--- stabs.c 2001/01/17 20:30:40
***************
*** 33,38 ****
--- 33,39 ----
#include "demangle.h"
#include "debug.h"
#include "budbg.h"
+ #include "filenames.h"
/* Meaningless definition needs by aout64.h. FIXME. */
#define BYTES_IN_WORD 4
***************
*** 40,53 ****
#include "aout/aout64.h"
#include "aout/stab_gnu.h"
- #ifndef DIR_SEPARATOR
- #ifdef _WIN32
- #define DIR_SEPARATOR '\\'
- #else
- #define DIR_SEPARATOR '/'
- #endif
- #endif
-
/* The number of predefined XCOFF types. */
#define XCOFF_TYPE_COUNT 34
--- 41,46 ----
*************** parse_stab (dhandle, handle, type, desc,
*** 568,579 ****
f = info->so_string;
! if ( (string[0] == '/')
! || (string[0] == DIR_SEPARATOR)
! || ( (DIR_SEPARATOR == '\\')
! && (string[1] == ':')
! && ( (string[2] == DIR_SEPARATOR)
! || (string[2] == '/'))))
info->so_string = xstrdup (string);
else
info->so_string = concat (info->so_string, string,
--- 561,567 ----
f = info->so_string;
! if (IS_ABSOLUTE_PATH (string))
info->so_string = xstrdup (string);
else
info->so_string = concat (info->so_string, string,